From dc85724f703bddf6988b6b3f20203beab775f32b Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Tue, 27 Oct 2009 20:30:28 +0000 Subject: 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 --- tools/lli/lli.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/lli') 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. -- cgit v1.2.3