mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Move target specific code to target files. The new MachineCodeEmitter
class is actually target independent! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6517 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) {
|
||||
@ -65,11 +65,10 @@ VM::VM(Module *M, TargetMachine *tm) : ExecutionEngine(M), TM(*tm) {
|
||||
if (Arch == "x86") {
|
||||
MCE = createX86Emitter(*this);
|
||||
} else if (Arch == "sparc") {
|
||||
MCE = createSparcEmitter(*this);
|
||||
//MCE = createSparcEmitter(*this);
|
||||
}
|
||||
|
||||
setupPassManager();
|
||||
registerCallback();
|
||||
emitGlobals();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user