lli should only create memmgr when JITing.

llvm-svn: 147969
This commit is contained in:
Jim Grosbach 2012-01-11 21:19:49 +00:00
parent 8811b3904c
commit 93076bc83f
1 changed files with 1 additions and 3 deletions

View File

@ -193,8 +193,6 @@ int main(int argc, char **argv, char * const *envp) {
}
}
JITMemoryManager *JMM = JITMemoryManager::CreateDefaultMemManager();
EngineBuilder builder(Mod);
builder.setMArch(MArch);
builder.setMCPU(MCPU);
@ -202,7 +200,7 @@ int main(int argc, char **argv, char * const *envp) {
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);