* 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:
Misha Brukman
2003-06-02 03:23:16 +00:00
parent cf135cbc77
commit 906f5fa5c8
5 changed files with 24 additions and 262 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) {
@ -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();