aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/JIT/JIT.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r--lib/ExecutionEngine/JIT/JIT.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp
index 9bdaa57017..7309b80c4b 100644
--- a/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/lib/ExecutionEngine/JIT/JIT.cpp
@@ -6,10 +6,11 @@
//===----------------------------------------------------------------------===//
#include "VM.h"
+#include "llvm/Module.h"
+#include "llvm/ModuleProvider.h"
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetMachineImpls.h"
-#include "llvm/Module.h"
#include "Support/CommandLine.h"
// FIXME: REMOVE THIS
@@ -71,7 +72,7 @@ ExecutionEngine *VM::create(ModuleProvider *MP) {
}
// Allocate a target...
- TargetMachine *Target = TargetMachineAllocator(*(MP->getModule()));
+ TargetMachine *Target = TargetMachineAllocator(*MP->getModule());
assert(Target && "Could not allocate target machine!");
// Create the virtual machine object...
@@ -99,7 +100,7 @@ VM::VM(ModuleProvider *MP, TargetMachine *tm) : ExecutionEngine(MP), TM(*tm),
// We cannot utilize function-at-a-time loading here because PreSelection
// is a ModulePass.
MP->materializeModule();
- PM.run(*(MP->getModule()));
+ PM.run(*MP->getModule());
}
#endif