summaryrefslogtreecommitdiffstats
path: root/llvm/tools
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
commita78d809abc6d3a4a6db0a5f8ca6a80bfa20508a0 (patch)
treecac6a373b7c3aee5987be318ea17409ac16bb3f9 /llvm/tools
parent0d1390356312fbaff47dcbffa53d2579de47378f (diff)
downloadbcm5719-llvm-a78d809abc6d3a4a6db0a5f8ca6a80bfa20508a0.tar.gz
bcm5719-llvm-a78d809abc6d3a4a6db0a5f8ca6a80bfa20508a0.zip
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. llvm-svn: 76291
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/lli/lli.cpp7
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())
OpenPOWER on IntegriCloud