[llvm-commits] [llvm] r147969 - /llvm/trunk/tools/lli/lli.cpp
Jim Grosbach
grosbach at apple.com
Wed Jan 11 13:19:50 PST 2012
Author: grosbach
Date: Wed Jan 11 15:19:49 2012
New Revision: 147969
URL: http://llvm.org/viewvc/llvm-project?rev=147969&view=rev
Log:
lli should only create memmgr when JITing.
Modified:
llvm/trunk/tools/lli/lli.cpp
Modified: llvm/trunk/tools/lli/lli.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/lli.cpp?rev=147969&r1=147968&r2=147969&view=diff
==============================================================================
--- llvm/trunk/tools/lli/lli.cpp (original)
+++ llvm/trunk/tools/lli/lli.cpp Wed Jan 11 15:19:49 2012
@@ -193,8 +193,6 @@
}
}
- JITMemoryManager *JMM = JITMemoryManager::CreateDefaultMemManager();
-
EngineBuilder builder(Mod);
builder.setMArch(MArch);
builder.setMCPU(MCPU);
@@ -202,7 +200,7 @@
builder.setRelocationModel(RelocModel);
builder.setCodeModel(CMModel);
builder.setErrorStr(&ErrorMsg);
- builder.setJITMemoryManager(JMM);
+ builder.setJITMemoryManager(ForceInterpreter ? 0 : JITMemoryManager::CreateDefaultMemManager());
builder.setEngineKind(ForceInterpreter
? EngineKind::Interpreter
: EngineKind::JIT);
More information about the llvm-commits
mailing list