summaryrefslogtreecommitdiff
path: root/tools/lli
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-18 08:07:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-18 08:07:13 +0000
commit4dc31369eb711344055a69f6d9663b584b2a032d (patch)
tree3c494f054bfa158015e3aa18962f9b350fe575a3 /tools/lli
parent3a4a884c1618d94202ee714ea5c899cd80d1c536 (diff)
downloadllvm-4dc31369eb711344055a69f6d9663b584b2a032d.tar.gz
llvm-4dc31369eb711344055a69f6d9663b584b2a032d.tar.bz2
llvm-4dc31369eb711344055a69f6d9663b584b2a032d.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r--tools/lli/lli.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 12f9155824..0337703ecf 100644
--- a/tools/lli/lli.cpp
+++ b/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())