summaryrefslogtreecommitdiff
path: root/tools/lli/lli.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lli/lli.cpp')
-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())