summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-07 23:56:10 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-07 23:56:10 +0000
commitd801b06232cd252c00e25363fbfcc2a74896b6e9 (patch)
treeb30fb8f0d4cfbe10af1d4db6f3124dbe45885b2a /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
parent32cc4ec304a112344a006ff35f01657dda1f5aa3 (diff)
downloadbcm5719-llvm-d801b06232cd252c00e25363fbfcc2a74896b6e9.tar.gz
bcm5719-llvm-d801b06232cd252c00e25363fbfcc2a74896b6e9.zip
Keep track of whether a member function instantiated from a member
function of a class template was implicitly instantiated, explicitly instantiated (declaration or definition), or explicitly specialized. The same MemberSpecializationInfo structure will be used for static data members and member classes as well. llvm-svn: 83509
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiateDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index fa303659412..fcacb4a3f00 100644
--- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -522,7 +522,7 @@ Decl *TemplateDeclInstantiator::VisitFunctionDecl(FunctionDecl *D) {
if (!Owner->isDependentContext())
DC->makeDeclVisibleInContext(Function, /* Recoverable = */ false);
- Function->setInstantiationOfMemberFunction(D);
+ Function->setInstantiationOfMemberFunction(D, TSK_ImplicitInstantiation);
}
if (InitFunctionInstantiation(Function, D))
@@ -637,7 +637,7 @@ TemplateDeclInstantiator::VisitCXXMethodDecl(CXXMethodDecl *D,
FunctionTemplate->setLexicalDeclContext(D->getLexicalDeclContext());
Method->setDescribedFunctionTemplate(FunctionTemplate);
} else if (!FunctionTemplate)
- Method->setInstantiationOfMemberFunction(D);
+ Method->setInstantiationOfMemberFunction(D, TSK_ImplicitInstantiation);
// If we are instantiating a member function defined
// out-of-line, the instantiation will have the same lexical
OpenPOWER on IntegriCloud