diff options
author | Dan Gohman <gohman@apple.com> | 2008-03-21 23:38:23 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-03-21 23:38:23 +0000 |
commit | 5a6ac79738406a4902908cd53735b84f8cddfa2f (patch) | |
tree | 5a333e00467f60be18fca4e4e3c722b1a025dae0 /llvm/lib | |
parent | 30e44a4b403f442396f33f6af0fcc3b39526f9a8 (diff) | |
download | bcm5719-llvm-5a6ac79738406a4902908cd53735b84f8cddfa2f.tar.gz bcm5719-llvm-5a6ac79738406a4902908cd53735b84f8cddfa2f.zip |
Specialize FORCE_DEFINING_FILE_TO_BE_LINKED using a GCC trick
to avoid using constructor calls for static objects. This reduces
the number of objects requiring static constructors in a typical
LLVM build by around 20%.
llvm-svn: 48665
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/System/IncludeFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/IncludeFile.cpp b/llvm/lib/System/IncludeFile.cpp index d927e159591..8258d40326f 100644 --- a/llvm/lib/System/IncludeFile.cpp +++ b/llvm/lib/System/IncludeFile.cpp @@ -17,4 +17,4 @@ using namespace llvm; // This constructor is used to ensure linking of other modules. See the // llvm/System/IncludeFile.h header for details. -IncludeFile::IncludeFile(void*) {} +IncludeFile::IncludeFile(const void*) {} |