summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-17 15:32:38 +0000
committerChris Lattner <sabre@nondot.org>2003-06-17 15:32:38 +0000
commit7aefa966cdeaf054922de341a1e36b4fceee08ce (patch)
tree17e7f11bd7dc37ae8968623064dac9bfadf45ff3 /lib
parent388f669d956c08571108f26a5371e02269e662f5 (diff)
downloadllvm-7aefa966cdeaf054922de341a1e36b4fceee08ce.tar.gz
llvm-7aefa966cdeaf054922de341a1e36b4fceee08ce.tar.bz2
llvm-7aefa966cdeaf054922de341a1e36b4fceee08ce.tar.xz
#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
Diffstat (limited to 'lib')
-rw-r--r--lib/ExecutionEngine/JIT/JIT.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp
index fd41c4c127..5a3245b91b 100644
--- a/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/lib/ExecutionEngine/JIT/JIT.cpp
@@ -27,7 +27,6 @@ namespace {
#else
"";
#endif
-
}
/// 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.
if (Arch == "x86") {
TargetMachineAllocator = allocateX86TargetMachine;
+#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
} else if (Arch == "sparc") {
TargetMachineAllocator = allocateSparcTargetMachine;
+#endif
}
if (TargetMachineAllocator) {
@@ -68,6 +69,7 @@ VM::VM(Module *M, TargetMachine *tm) : ExecutionEngine(M), TM(*tm) {
setupPassManager();
+#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
// THIS GOES BEYOND UGLY HACKS
if (TM.getName() == "UltraSparc-Native") {
extern Pass *createPreSelectionPass(TargetMachine &TM);
@@ -77,6 +79,7 @@ VM::VM(Module *M, TargetMachine *tm) : ExecutionEngine(M), TM(*tm) {
PM.add(createPreSelectionPass(TM));
PM.run(*M);
}
+#endif
emitGlobals();
}