diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/tools/lli/lli.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index 12f91558247..0337703ecf5 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -132,10 +132,13 @@ int main(int argc, char **argv, char * const *envp) {    }    EngineBuilder builder(MP); -  builder.setErrorStr(&ErrorMsg) -         .setEngineKind(ForceInterpreter +  builder.setErrorStr(&ErrorMsg); +  builder.setEngineKind(ForceInterpreter                          ? EngineKind::Interpreter                          : EngineKind::JIT); +  // FIXME: Don't allocate GVs with code once the JIT because smarter about +  // memory management. +  builder.setAllocateGVsWithCode(true);    // If we are supposed to override the target triple, do so now.    if (!TargetTriple.empty())  | 

