summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-12-25 05:29:40 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-12-25 05:29:40 +0000
commit2e06e8bbccc764742d271928b5a346611b740015 (patch)
tree67aa3b43a3dfa1d14a729d9e2634c898a323b368 /clang/lib/CodeGen/CodeGenModule.cpp
parentfddc26cc641412f7ed4245cb05d11343dc0e0f12 (diff)
downloadbcm5719-llvm-2e06e8bbccc764742d271928b5a346611b740015.tar.gz
bcm5719-llvm-2e06e8bbccc764742d271928b5a346611b740015.zip
Some small improvements to dead code elimination; helps a bit on
LLVM-Code-Symbols test. llvm-svn: 92152
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 761f34309bd..a7e05520508 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -546,7 +546,7 @@ bool CodeGenModule::MayDeferGeneration(const ValueDecl *Global) {
// static, static inline, always_inline, and extern inline functions can
// always be deferred. Normal inline functions can be deferred in C99/C++.
if (Linkage == GVA_Internal || Linkage == GVA_C99Inline ||
- Linkage == GVA_CXXInline)
+ Linkage == GVA_CXXInline || Linkage == GVA_TemplateInstantiation)
return true;
return false;
}
OpenPOWER on IntegriCloud