diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-27 20:30:28 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-27 20:30:28 +0000 |
commit | dc85724f703bddf6988b6b3f20203beab775f32b (patch) | |
tree | a936eb2947dd33c21f495fd517444bb74ab89493 /tools/lli | |
parent | 5f75cf511bca0598d4db3b19d0f154ce5657f058 (diff) |
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.cpp | 3 |
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. |