mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
JIT.cpp:
* #include "llvm/ModuleProvider" * alphabetize #includes * omit extraneous parens in pointer expressions VM.cpp: * #include "llvm/ModuleProvider" * alphabetize #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9182 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
19684164a7
commit
0f4f7d9eb7
@ -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…
x
Reference in New Issue
Block a user