[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Tue Oct 28 22:25:01 PST 2003


Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.21 -> 1.22

---
Log message:

In VM::create(), comment out almost the whole function if NO_JITS_ENABLED,
because the Arch variable will likely be undefined.


---
Diffs of the changes:  (+4 -3)

Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.21 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.22
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.21	Mon Oct 20 14:43:16 2003
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Tue Oct 28 22:24:09 2003
@@ -59,9 +59,7 @@
   // Allow a command-line switch to override what *should* be the default target
   // machine for this platform. This allows for debugging a Sparc JIT on X86 --
   // our X86 machines are much faster at recompiling LLVM and linking LLI.
-#ifdef NO_JITS_ENABLED
-  return 0;
-#endif
+#ifndef NO_JITS_ENABLED
 
   switch (Arch) {
 #ifdef ENABLE_X86_JIT
@@ -77,6 +75,9 @@
   default:
     assert(0 && "-march flag not supported on this host!");
   }
+#else
+  return 0;
+#endif
 
   // Allocate a target...
   TargetMachine *Target = TargetMachineAllocator(*MP->getModule());





More information about the llvm-commits mailing list