Switch lli back to using allocate-gvs-with-code behavior.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 18 Jul 2009 08:07:13 +0000 (08:07 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 18 Jul 2009 08:07:13 +0000 (08:07 +0000)
 - Otherwise we get two regressions in llvm-test for applications which run out
   of space.

 - Once the JIT memory manager is improved, this can be switched back.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76291 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lli/lli.cpp

index 12f91558247f3f9ffbd090ca60b38e75e5c84915..0337703ecf5064c4fb90220aba9e43d564f2f748 100644 (file)
@@ -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())