mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
* Removed SparcEmitter.cpp; rolled into lib/Target/Sparc/SparcV9CodeEmitter.cpp
* No more createX86Emitter() vs. createSparcEmitter() -- there can be only one * As a result, the memory management semantics must be handled according to platform -- the parameters to mmap() are particularly sensitive to the host architecture. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6527 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -43,7 +43,7 @@ ExecutionEngine *ExecutionEngine::createJIT(Module *M, unsigned Config) {
|
||||
if (Arch == "x86") {
|
||||
TargetMachineAllocator = allocateX86TargetMachine;
|
||||
} else if (Arch == "sparc") {
|
||||
//TargetMachineAllocator = allocateSparcTargetMachine;
|
||||
TargetMachineAllocator = allocateSparcTargetMachine;
|
||||
}
|
||||
|
||||
if (TargetMachineAllocator) {
|
||||
@ -62,11 +62,7 @@ VM::VM(Module *M, TargetMachine *tm) : ExecutionEngine(M), TM(*tm) {
|
||||
setTargetData(TM.getTargetData());
|
||||
|
||||
// Initialize MCE
|
||||
if (Arch == "x86") {
|
||||
MCE = createX86Emitter(*this);
|
||||
} else if (Arch == "sparc") {
|
||||
//MCE = createSparcEmitter(*this);
|
||||
}
|
||||
MCE = createEmitter(*this);
|
||||
|
||||
setupPassManager();
|
||||
emitGlobals();
|
||||
|
Reference in New Issue
Block a user