diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-07-18 08:07:13 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-18 08:07:13 +0000 |
| commit | a78d809abc6d3a4a6db0a5f8ca6a80bfa20508a0 (patch) | |
| tree | cac6a373b7c3aee5987be318ea17409ac16bb3f9 /llvm/tools | |
| parent | 0d1390356312fbaff47dcbffa53d2579de47378f (diff) | |
| download | bcm5719-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.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()) |

