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
// 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
default:
assert(0 && "-march flag not supported on this host!");
}
+#else
+ return 0;
+#endif
// Allocate a target...
TargetMachine *Target = TargetMachineAllocator(*MP->getModule());