summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-29 20:59:39 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-29 20:59:39 +0000
commit8f5d4423ca126d66beddd0db69c384f6d07f1a93 (patch)
tree5835a0a7c5c6d546cae3a3f320d5ecd8f1f4ce39 /clang/lib/CodeGen/CodeGenModule.cpp
parent10de9e6602fcbe351aa20367c19a8cc39bb0c991 (diff)
downloadbcm5719-llvm-8f5d4423ca126d66beddd0db69c384f6d07f1a93.tar.gz
bcm5719-llvm-8f5d4423ca126d66beddd0db69c384f6d07f1a93.zip
Keep track of function template specializations, to eliminate
redundant, implicit instantiations of function templates and provide a place where we can hang function template specializations. llvm-svn: 74454
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index a82324834b8..acd90e26469 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1500,6 +1500,8 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {
break;
// No code generation needed.
case Decl::Using:
+ case Decl::ClassTemplate:
+ case Decl::FunctionTemplate:
break;
case Decl::CXXConstructor:
EmitCXXConstructors(cast<CXXConstructorDecl>(D));
OpenPOWER on IntegriCloud