OSDN Git Service

Specialize FORCE_DEFINING_FILE_TO_BE_LINKED using a GCC trick
authorDan Gohman <gohman@apple.com>
Fri, 21 Mar 2008 23:38:23 +0000 (23:38 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 21 Mar 2008 23:38:23 +0000 (23:38 +0000)
commitfbee880cfbf4e63d6d2ad5c71c85ff8ead2074c4
tree9c8a36e34af92cf6fa2eadf89a437f11c436c142
parent4145bd509d0be0ea2ebea693a7ad15948480d982
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
include/llvm/System/IncludeFile.h
lib/System/IncludeFile.cpp