diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-29 04:24:09 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-29 04:24:09 +0000 |
commit | 9d2020003b4964c936cce3fe6923fa301ff7ab7f (patch) | |
tree | 53aaec9c8be9f25830664fb556e1ed3a547a26f9 /llvm | |
parent | d478d3d19c39aa51ec73868f6599f09fbc693ab1 (diff) | |
download | bcm5719-llvm-9d2020003b4964c936cce3fe6923fa301ff7ab7f.tar.gz bcm5719-llvm-9d2020003b4964c936cce3fe6923fa301ff7ab7f.zip |
In VM::create(), comment out almost the whole function if NO_JITS_ENABLED,
because the Arch variable will likely be undefined.
llvm-svn: 9576
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 6e229b9e8c2..6b14bb0aed6 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/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()); |