diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-04 21:44:00 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-04 21:44:00 +0000 |
| commit | cdb8b3f7ec3f3ab8e1b3db8da384f2444492e5b3 (patch) | |
| tree | 4208e890f691f8739b5e96e333707815d70a34fc /clang/include | |
| parent | 0bdaf64fd76e76df33beca1f5e66df8836012005 (diff) | |
| download | bcm5719-llvm-cdb8b3f7ec3f3ab8e1b3db8da384f2444492e5b3.tar.gz bcm5719-llvm-cdb8b3f7ec3f3ab8e1b3db8da384f2444492e5b3.zip | |
Read/write specialization info of static data members for PCH.
llvm-svn: 107593
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/AST/ASTContext.h | 3 | ||||
| -rw-r--r-- | clang/include/clang/AST/DeclTemplate.h | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index 2b65f3155ea..0a6b6cd45e6 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/include/clang/AST/ASTContext.h @@ -331,7 +331,8 @@ public: /// \brief Note that the static data member \p Inst is an instantiation of /// the static data member template \p Tmpl of a class template. void setInstantiatedFromStaticDataMember(VarDecl *Inst, VarDecl *Tmpl, - TemplateSpecializationKind TSK); + TemplateSpecializationKind TSK, + SourceLocation PointOfInstantiation = SourceLocation()); /// \brief If the given using decl is an instantiation of a /// (possibly unresolved) using decl from a template instantiation, diff --git a/clang/include/clang/AST/DeclTemplate.h b/clang/include/clang/AST/DeclTemplate.h index 84e755302af..9e6cf0c38fa 100644 --- a/clang/include/clang/AST/DeclTemplate.h +++ b/clang/include/clang/AST/DeclTemplate.h @@ -379,8 +379,9 @@ class MemberSpecializationInfo { public: explicit - MemberSpecializationInfo(NamedDecl *IF, TemplateSpecializationKind TSK) - : MemberAndTSK(IF, TSK - 1), PointOfInstantiation() { + MemberSpecializationInfo(NamedDecl *IF, TemplateSpecializationKind TSK, + SourceLocation POI = SourceLocation()) + : MemberAndTSK(IF, TSK - 1), PointOfInstantiation(POI) { assert(TSK != TSK_Undeclared && "Cannot encode undeclared template specializations for members"); } |

