aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit5bf51082ad699182d0333d5df42473a58f837507 (patch)
tree9c8a36e34af92cf6fa2eadf89a437f11c436c142 /lib
parentd0627015cec0b75f7044b7aef28f6e802e0f4648 (diff)
downloadexternal_llvm-5bf51082ad699182d0333d5df42473a58f837507.zip
external_llvm-5bf51082ad699182d0333d5df42473a58f837507.tar.gz
external_llvm-5bf51082ad699182d0333d5df42473a58f837507.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')
-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*) {}