]> granicus.if.org Git - clang/commit
Do not generate LLVM IR for available_externally function bodies at
authorDouglas Gregor <dgregor@apple.com>
Mon, 12 Jul 2010 17:24:55 +0000 (17:24 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 12 Jul 2010 17:24:55 +0000 (17:24 +0000)
commit7ce1f2714ac0f33210bab14650bce2078ebf343e
tree5d3bd4729bde551f2b5d0c58080659b48b5a669c
parent64d092c232bc282762430df9eb67beafffaa2fdc
Do not generate LLVM IR for available_externally function bodies at
-O0, since we won't be using the definitions for anything anyway. For
lib/System/Path.o when built in Debug+Asserts mode, this leads to a 4%
improvement in compile time (and suppresses 440 function bodies).

<rdar://problem/7987644>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108156 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CXX/temp/temp.spec/temp.explicit/p9-linkage.cpp
test/CodeGen/available-externally-suppress.c [new file with mode: 0644]
test/CodeGen/inline.c
test/CodeGen/inline2.c
test/CodeGenCXX/template-instantiation.cpp
test/CodeGenCXX/visibility-hidden-extern-templates.cpp