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:
Chris Lattner
2003-06-01 23:24:36 +00:00
parent 04b0b309c4
commit bba1b6df9a
6 changed files with 80 additions and 196 deletions

View File

@ -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();
}