diff options
author | Dylan Noblesmith <nobled@dreamwidth.org> | 2011-05-06 22:05:43 +0000 |
---|---|---|
committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2011-05-06 22:05:43 +0000 |
commit | fed7f0b3a0bda0f649be3c8ce16565f3ca063274 (patch) | |
tree | b6f55fa22f92375d90509a1bbc0c8148d3b08201 /llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp | |
parent | a5c889982a5d1f5695298162474de4d1e1888065 (diff) | |
download | bcm5719-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.cpp | 3 |
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); |