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/visibility-hidden-extern-templates.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/visibility-hidden-extern-templates.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/visibility-hidden-extern-templates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/visibility-hidden-extern-templates.cpp b/clang/test/CodeGenCXX/visibility-hidden-extern-templates.cpp index 4c133ec32c7..7629b77c2ce 100644 --- a/clang/test/CodeGenCXX/visibility-hidden-extern-templates.cpp +++ b/clang/test/CodeGenCXX/visibility-hidden-extern-templates.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -emit-llvm -o - -fvisibility hidden %s | FileCheck %s +// RUN: %clang_cc1 -O1 -emit-llvm -o - -fvisibility hidden %s | FileCheck %s template<typename T> struct X { |