diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lli/lli.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 7f7c37f..b6c9299 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -419,8 +419,6 @@ int main(int argc, char **argv, char * const *envp) { builder.setRelocationModel(RelocModel); builder.setCodeModel(CMModel); builder.setErrorStr(&ErrorMsg); - builder.setJITMemoryManager(ForceInterpreter ? 0 : - JITMemoryManager::CreateDefaultMemManager()); builder.setEngineKind(ForceInterpreter ? EngineKind::Interpreter : EngineKind::JIT); @@ -435,6 +433,9 @@ int main(int argc, char **argv, char * const *envp) { builder.setUseMCJIT(true); JMM = new LLIMCJITMemoryManager(); builder.setJITMemoryManager(JMM); + } else { + builder.setJITMemoryManager(ForceInterpreter ? 0 : + JITMemoryManager::CreateDefaultMemManager()); } CodeGenOpt::Level OLvl = CodeGenOpt::Default; |