diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-10-16 21:19:34 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-10-16 21:19:34 +0000 |
commit | 1273147daf17230bbb1c904f36142e821a63a2fc (patch) | |
tree | aab72d3ce7582ee94fa7cc66cfcdcb9ed0af1744 /llvm/lib/ExecutionEngine | |
parent | 260b0c88a006d3952975fb5000de38f32e5744c7 (diff) | |
download | bcm5719-llvm-1273147daf17230bbb1c904f36142e821a63a2fc.tar.gz bcm5719-llvm-1273147daf17230bbb1c904f36142e821a63a2fc.zip |
JIT.cpp:
* #include "llvm/ModuleProvider"
* alphabetize #includes
* omit extraneous parens in pointer expressions
VM.cpp:
* #include "llvm/ModuleProvider"
* alphabetize #includes
llvm-svn: 9182
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 7 | ||||
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/VM.cpp | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 9bdaa570179..7309b80c4b6 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/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 diff --git a/llvm/lib/ExecutionEngine/JIT/VM.cpp b/llvm/lib/ExecutionEngine/JIT/VM.cpp index 622215b7a7b..f2ddcf487ae 100644 --- a/llvm/lib/ExecutionEngine/JIT/VM.cpp +++ b/llvm/lib/ExecutionEngine/JIT/VM.cpp @@ -6,9 +6,10 @@ //===----------------------------------------------------------------------===// #include "VM.h" -#include "llvm/Target/TargetMachine.h" -#include "llvm/CodeGen/MachineCodeEmitter.h" #include "llvm/Function.h" +#include "llvm/ModuleProvider.h" +#include "llvm/CodeGen/MachineCodeEmitter.h" +#include "llvm/Target/TargetMachine.h" VM::~VM() { delete MCE; |