From fbee880cfbf4e63d6d2ad5c71c85ff8ead2074c4 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 21 Mar 2008 23:38:23 +0000 Subject: 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 --- lib/System/IncludeFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/System') 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*) {} -- cgit v1.1