aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/JIT/JIT.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-24 19:50:53 +0000
committerChris Lattner <sabre@nondot.org>2003-08-24 19:50:53 +0000
commit39c07264da992fd5d37fa7eaac0b9f02f55f80d0 (patch)
tree8272f4fdfbabda52456df604bd85d18ae616fc51 /lib/ExecutionEngine/JIT/JIT.cpp
parent62c720a5bdd36b85dd497a1c3575db5731eca208 (diff)
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
Diffstat (limited to 'lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r--lib/ExecutionEngine/JIT/JIT.cpp6
1 files changed, 3 insertions, 3 deletions
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...