ExecutionEngine::create(): fix interpreter fallback when JIT is unavailable
authorAlp Toker <alp@nuanti.com>
Tue, 1 Jul 2014 03:18:49 +0000 (03:18 +0000)
committerAlp Toker <alp@nuanti.com>
Tue, 1 Jul 2014 03:18:49 +0000 (03:18 +0000)
commitfaa4e49b330e777e6de1be84a72de3cb6278dede
tree33d077e5347649b47a503776e2f3bf32507cc05c
parent7186dd451318d5649a52170c3af5ad7851ed2781
ExecutionEngine::create(): fix interpreter fallback when JIT is unavailable

ForceInterpreter=false shouldn't disable the interpreter completely because it
can still be necessary to interpret if the target doesn't support JIT.

No obvious way to test this in LLVM, but this matches what
LLVMCreateExecutionEngineForModule() does and fixes the clang-interpreter
example in the clang source tree which uses the ExecutionEngine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212086 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp