summaryrefslogtreecommitdiff
path: root/tools/lli
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-10-27 20:30:28 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-10-27 20:30:28 +0000
commitdc85724f703bddf6988b6b3f20203beab775f32b (patch)
treea936eb2947dd33c21f495fd517444bb74ab89493 /tools/lli
parent5f75cf511bca0598d4db3b19d0f154ce5657f058 (diff)
downloadllvm-dc85724f703bddf6988b6b3f20203beab775f32b.tar.gz
llvm-dc85724f703bddf6988b6b3f20203beab775f32b.tar.bz2
llvm-dc85724f703bddf6988b6b3f20203beab775f32b.tar.xz
Change the JIT to compile eagerly by default as agreed in
http://llvm.org/PR5184, and beef up the comments to describe what both options do and the risks of lazy compilation in the presence of threads. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r--tools/lli/lli.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 4578c4ea9f..0fa39dab38 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -165,8 +165,7 @@ int main(int argc, char **argv, char * const *envp) {
EE->RegisterJITEventListener(createOProfileJITEventListener());
- if (NoLazyCompilation)
- EE->DisableLazyCompilation();
+ EE->EnableLazyCompilation(!NoLazyCompilation);
// If the user specifically requested an argv[0] to pass into the program,
// do it now.