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)
commit568c31f236e71e9771c5c076ea51eb01f4e6fa57
tree04b9e4a6f474da890ed59642cd8c50bbd6a59813
parentb89e6d93d9c12f9f5ed697144286d5aba06e9db1
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.

llvm-svn: 212086
llvm/lib/ExecutionEngine/ExecutionEngine.cpp