diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-12 17:24:55 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-12 17:24:55 +0000 |
commit | dbb2806a7b05792c1be5ba3834a3f6663e35e6a8 (patch) | |
tree | 8ec21af9daaa812fc3f193865f7e4fc8f77b9d30 /clang/test/CodeGenCXX/template-instantiation.cpp | |
parent | 4be8f2ffad95e3cb93a4192f67c2fdd64d565a5b (diff) | |
download | bcm5719-llvm-dbb2806a7b05792c1be5ba3834a3f6663e35e6a8.tar.gz bcm5719-llvm-dbb2806a7b05792c1be5ba3834a3f6663e35e6a8.zip |
Do not generate LLVM IR for available_externally function bodies at
-O0, since we won't be using the definitions for anything anyway. For
lib/System/Path.o when built in Debug+Asserts mode, this leads to a 4%
improvement in compile time (and suppresses 440 function bodies).
<rdar://problem/7987644>
llvm-svn: 108156
Diffstat (limited to 'clang/test/CodeGenCXX/template-instantiation.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/template-instantiation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/template-instantiation.cpp b/clang/test/CodeGenCXX/template-instantiation.cpp index 4a3857542d0..cb6c8123164 100644 --- a/clang/test/CodeGenCXX/template-instantiation.cpp +++ b/clang/test/CodeGenCXX/template-instantiation.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 %s -O1 -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s // CHECK-NOT: @_ZTVN5test118stdio_sync_filebufIwEE = constant // CHECK-NOT: _ZTVN5test315basic_fstreamXXIcEE |