[llvm-commits] [llvm] r76291 - /llvm/trunk/tools/lli/lli.cpp

Daniel Dunbar daniel at zuster.org
Sat Jul 18 01:07:18 PDT 2009


Author: ddunbar
Date: Sat Jul 18 03:07:13 2009
New Revision: 76291

URL: http://llvm.org/viewvc/llvm-project?rev=76291&view=rev
Log:
Switch lli back to using allocate-gvs-with-code behavior.
 - 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.

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=76291&r1=76290&r2=76291&view=diff

==============================================================================
--- llvm/trunk/tools/lli/lli.cpp (original)
+++ llvm/trunk/tools/lli/lli.cpp Sat Jul 18 03:07:13 2009
@@ -132,10 +132,13 @@
   }
 
   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())





More information about the llvm-commits mailing list