forked from OSchip/llvm-project
JIT.cpp:
* #include "llvm/ModuleProvider" * alphabetize #includes * omit extraneous parens in pointer expressions VM.cpp: * #include "llvm/ModuleProvider" * alphabetize #includes llvm-svn: 9182
This commit is contained in:
parent
260b0c88a0
commit
1273147daf
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue