aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-21 23:38:23 +0000
committerDan Gohman <gohman@apple.com>2008-03-21 23:38:23 +0000
commitfbee880cfbf4e63d6d2ad5c71c85ff8ead2074c4 (patch)
tree9c8a36e34af92cf6fa2eadf89a437f11c436c142 /lib/System
parent4145bd509d0be0ea2ebea693a7ad15948480d982 (diff)
downloadexternal_llvm-fbee880cfbf4e63d6d2ad5c71c85ff8ead2074c4.zip
external_llvm-fbee880cfbf4e63d6d2ad5c71c85ff8ead2074c4.tar.gz
external_llvm-fbee880cfbf4e63d6d2ad5c71c85ff8ead2074c4.tar.bz2
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%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/IncludeFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/IncludeFile.cpp b/lib/System/IncludeFile.cpp
index d927e15..8258d40 100644
--- a/lib/System/IncludeFile.cpp
+++ b/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*) {}