[llvm-commits] CVS: llvm/tools/lli/JIT/JIT.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jun 17 10:33:00 PDT 2003
Changes in directory llvm/tools/lli/JIT:
JIT.cpp updated: 1.7 -> 1.8
---
Log message:
#ifdef out code that only applies when the HOSTARCH = sparc
---
Diffs of the changes:
Index: llvm/tools/lli/JIT/JIT.cpp
diff -u llvm/tools/lli/JIT/JIT.cpp:1.7 llvm/tools/lli/JIT/JIT.cpp:1.8
--- llvm/tools/lli/JIT/JIT.cpp:1.7 Fri Jun 6 01:59:55 2003
+++ llvm/tools/lli/JIT/JIT.cpp Tue Jun 17 10:32:38 2003
@@ -27,7 +27,6 @@
#else
"";
#endif
-
}
/// createJIT - Create an return a new JIT compiler if there is one available
@@ -44,8 +43,10 @@
// 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 @@
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 @@
PM.add(createPreSelectionPass(TM));
PM.run(*M);
}
+#endif
emitGlobals();
}
More information about the llvm-commits
mailing list