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 | fbee880cfbf4e63d6d2ad5c71c85ff8ead2074c4 (patch) | |
tree | 9c8a36e34af92cf6fa2eadf89a437f11c436c142 /lib/System/IncludeFile.cpp | |
parent | 4145bd509d0be0ea2ebea693a7ad15948480d982 (diff) |
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/IncludeFile.cpp')
-rw-r--r-- | lib/System/IncludeFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/IncludeFile.cpp b/lib/System/IncludeFile.cpp index d927e15959..8258d40326 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*) {} |