diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-08-21 15:42:49 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-08-21 15:42:49 +0000 |
commit | bea6753f4f6adad9264e1ce47d5aa984c31678c5 (patch) | |
tree | c57ce42dfd0a2e1b8dbe012db79871280c334f6f /llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp | |
parent | 68d9c9da40851ed83dd0ae54433940a3194b4017 (diff) | |
download | bcm5719-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/MCJIT/MCJIT.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp index 739ffd7d85d..99c65ecf950 100644 --- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -44,18 +44,12 @@ ExecutionEngine *MCJIT::createJIT(Module *M, // FIXME: Don't do this here. sys::DynamicLibrary::LoadLibraryPermanently(0, NULL); - // If the target supports JIT code generation, create the JIT. - if (TargetJITInfo *TJ = TM->getJITInfo()) - return new MCJIT(M, TM, *TJ, new MCJITMemoryManager(JMM), GVsWithCode); - - if (ErrorStr) - *ErrorStr = "target does not support JIT code generation"; - return 0; + return new MCJIT(M, TM, new MCJITMemoryManager(JMM), GVsWithCode); } -MCJIT::MCJIT(Module *m, TargetMachine *tm, TargetJITInfo &tji, - RTDyldMemoryManager *MM, bool AllocateGVsWithCode) - : ExecutionEngine(m), TM(tm), Ctx(0), MemMgr(MM), Dyld(MM), +MCJIT::MCJIT(Module *m, TargetMachine *tm, RTDyldMemoryManager *MM, + bool AllocateGVsWithCode) + : ExecutionEngine(m), TM(tm), Ctx(0), MemMgr(MM), Dyld(MM), isCompiled(false), M(m), OS(Buffer) { setTargetData(TM->getTargetData()); |