diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-08-24 19:50:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-08-24 19:50:53 +0000 |
| commit | 4d4f424f0ca9b69428ecda479a8501357c98b546 (patch) | |
| tree | d5e230ba7636e108d3930dec2ccc195632f4b7ad /llvm/lib/ExecutionEngine/JIT/JIT.cpp | |
| parent | 9cb8d7d0acfc1889276f706c4ad8a589439b41fa (diff) | |
| download | bcm5719-llvm-4d4f424f0ca9b69428ecda479a8501357c98b546.tar.gz bcm5719-llvm-4d4f424f0ca9b69428ecda479a8501357c98b546.zip | |
Targets now configure themselves based on the source module, not on the
ad-hoc "Config" flags
llvm-svn: 8134
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JIT.cpp')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 7f4877b9cb2..57d7b89d8f2 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/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... |

