mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-18 14:31:27 +00:00
#ifdef out code that only applies when the HOSTARCH = sparc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6741 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
388f669d95
commit
7aefa966cd
@ -27,7 +27,6 @@ namespace {
|
|||||||
#else
|
#else
|
||||||
"";
|
"";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// createJIT - Create an return a new JIT compiler if there is one available
|
/// createJIT - Create an return a new JIT compiler if there is one available
|
||||||
@ -44,8 +43,10 @@ ExecutionEngine *ExecutionEngine::createJIT(Module *M, unsigned Config) {
|
|||||||
// our X86 machines are much faster at recompiling LLVM and linking lli.
|
// our X86 machines are much faster at recompiling LLVM and linking lli.
|
||||||
if (Arch == "x86") {
|
if (Arch == "x86") {
|
||||||
TargetMachineAllocator = allocateX86TargetMachine;
|
TargetMachineAllocator = allocateX86TargetMachine;
|
||||||
|
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
||||||
} else if (Arch == "sparc") {
|
} else if (Arch == "sparc") {
|
||||||
TargetMachineAllocator = allocateSparcTargetMachine;
|
TargetMachineAllocator = allocateSparcTargetMachine;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TargetMachineAllocator) {
|
if (TargetMachineAllocator) {
|
||||||
@ -68,6 +69,7 @@ VM::VM(Module *M, TargetMachine *tm) : ExecutionEngine(M), TM(*tm) {
|
|||||||
|
|
||||||
setupPassManager();
|
setupPassManager();
|
||||||
|
|
||||||
|
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
||||||
// THIS GOES BEYOND UGLY HACKS
|
// THIS GOES BEYOND UGLY HACKS
|
||||||
if (TM.getName() == "UltraSparc-Native") {
|
if (TM.getName() == "UltraSparc-Native") {
|
||||||
extern Pass *createPreSelectionPass(TargetMachine &TM);
|
extern Pass *createPreSelectionPass(TargetMachine &TM);
|
||||||
@ -77,6 +79,7 @@ VM::VM(Module *M, TargetMachine *tm) : ExecutionEngine(M), TM(*tm) {
|
|||||||
PM.add(createPreSelectionPass(TM));
|
PM.add(createPreSelectionPass(TM));
|
||||||
PM.run(*M);
|
PM.run(*M);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
emitGlobals();
|
emitGlobals();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user