aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-29 04:24:09 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-29 04:24:09 +0000
commit11911abf5cd6f91885b961e4386989e5a5399af3 (patch)
treea8581ca5f852475f6a07684406356b4fb9071b96 /lib/ExecutionEngine
parent5d1bdcd6f677442d6303f6e1db88c5fdf6ae382b (diff)
downloadexternal_llvm-11911abf5cd6f91885b961e4386989e5a5399af3.zip
external_llvm-11911abf5cd6f91885b961e4386989e5a5399af3.tar.gz
external_llvm-11911abf5cd6f91885b961e4386989e5a5399af3.tar.bz2
In VM::create(), comment out almost the whole function if NO_JITS_ENABLED,
because the Arch variable will likely be undefined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/JIT.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp
index 6e229b9..6b14bb0 100644
--- a/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/lib/ExecutionEngine/JIT/JIT.cpp
@@ -59,9 +59,7 @@ ExecutionEngine *VM::create(ModuleProvider *MP) {
// 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 @@ ExecutionEngine *VM::create(ModuleProvider *MP) {
default:
assert(0 && "-march flag not supported on this host!");
}
+#else
+ return 0;
+#endif
// Allocate a target...
TargetMachine *Target = TargetMachineAllocator(*MP->getModule());