From 39c07264da992fd5d37fa7eaac0b9f02f55f80d0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 24 Aug 2003 19:50:53 +0000 Subject: Targets now configure themselves based on the source module, not on the ad-hoc "Config" flags git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8134 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/JIT/JIT.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/ExecutionEngine/JIT/JIT.cpp') diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index 7f4877b9cb..57d7b89d8f 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/lib/ExecutionEngine/JIT/JIT.cpp @@ -44,9 +44,9 @@ namespace { /// createJIT - Create an return a new JIT compiler if there is one available /// for the current target. Otherwise it returns null. /// -ExecutionEngine *ExecutionEngine::createJIT(Module *M, unsigned Config) { +ExecutionEngine *ExecutionEngine::createJIT(Module *M) { - TargetMachine* (*TargetMachineAllocator)(unsigned) = 0; + TargetMachine* (*TargetMachineAllocator)(const Module &) = 0; // Allow a command-line switch to override what *should* be the default target // machine for this platform. This allows for debugging a Sparc JIT on X86 -- @@ -71,7 +71,7 @@ ExecutionEngine *ExecutionEngine::createJIT(Module *M, unsigned Config) { } // Allocate a target... - TargetMachine *Target = (*TargetMachineAllocator)(Config); + TargetMachine *Target = TargetMachineAllocator(*M); assert(Target && "Could not allocate target machine!"); // Create the virtual machine object... -- cgit v1.2.3-18-g5258