summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-08-21 15:42:49 +0000
committerJim Grosbach <grosbach@apple.com>2012-08-21 15:42:49 +0000
commitbea6753f4f6adad9264e1ce47d5aa984c31678c5 (patch)
treec57ce42dfd0a2e1b8dbe012db79871280c334f6f /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parent68d9c9da40851ed83dd0ae54433940a3194b4017 (diff)
downloadbcm5719-llvm-bea6753f4f6adad9264e1ce47d5aa984c31678c5.tar.gz
bcm5719-llvm-bea6753f4f6adad9264e1ce47d5aa984c31678c5.zip
MCJIT: Tidy up the constructor.
The MCJIT doesn't need or want a TargetJITInfo. That's vestigal from the old JIT, so just remove it. rdar://12119347 llvm-svn: 162280
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index a744d0c1e79..4afc900f640 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -501,7 +501,8 @@ ExecutionEngine *EngineBuilder::create(TargetMachine *TM) {
return 0;
}
- if ((WhichEngine & EngineKind::JIT) && ExecutionEngine::JITCtor == 0) {
+ if ((WhichEngine & EngineKind::JIT) && ExecutionEngine::JITCtor == 0 &&
+ ExecutionEngine::MCJITCtor == 0) {
if (ErrorStr)
*ErrorStr = "JIT has not been linked in.";
}
OpenPOWER on IntegriCloud