summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2011-05-06 22:05:43 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2011-05-06 22:05:43 +0000
commitfed7f0b3a0bda0f649be3c8ce16565f3ca063274 (patch)
treeb6f55fa22f92375d90509a1bbc0c8148d3b08201 /llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
parenta5c889982a5d1f5695298162474de4d1e1888065 (diff)
downloadbcm5719-llvm-fed7f0b3a0bda0f649be3c8ce16565f3ca063274.tar.gz
bcm5719-llvm-fed7f0b3a0bda0f649be3c8ce16565f3ca063274.zip
ExecutionEngine: fix JIT/MCJIT selectTarget() duplication
This prepares for making JITCtor/MCJITCtor take a TargetMachine* directly from clients like EngineBuilder. llvm-svn: 131025
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
index 3d4ee369ead..a07d0ebcc49 100644
--- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
+++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
@@ -52,7 +52,8 @@ ExecutionEngine *MCJIT::createJIT(Module *M,
// FIXME: This should be lifted out of here, it isn't something which should
// be part of the JIT policy, rather the burden for this selection should be
// pushed to clients.
- TargetMachine *TM = MCJIT::selectTarget(M, MArch, MCPU, MAttrs, ErrorStr);
+ TargetMachine *TM =
+ ExecutionEngine::selectTarget(M, MArch, MCPU, MAttrs, ErrorStr);
if (!TM || (ErrorStr && ErrorStr->length() > 0)) return 0;
TM->setCodeModel(CMM);
OpenPOWER on IntegriCloud