diff options
Diffstat (limited to 'AST/Decl.cpp')
-rw-r--r-- | AST/Decl.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/AST/Decl.cpp b/AST/Decl.cpp index f67d7124f5..bf1ffee832 100644 --- a/AST/Decl.cpp +++ b/AST/Decl.cpp @@ -37,6 +37,7 @@ static unsigned nObjCImplementationDecls = 0; static unsigned nObjCCategoryImpl = 0; static unsigned nObjCCompatibleAlias = 0; static unsigned nObjCPropertyDecl = 0; +static unsigned nLinkageSpecDecl = 0; static bool StatSwitch = false; @@ -156,7 +157,9 @@ void Decl::PrintStats() { nFileVars*sizeof(FileVarDecl)+nParmVars*sizeof(ParmVarDecl)+ nFieldDecls*sizeof(FieldDecl)+nSUC*sizeof(RecordDecl)+ nEnumDecls*sizeof(EnumDecl)+nEnumConst*sizeof(EnumConstantDecl)+ - nTypedef*sizeof(TypedefDecl)) /* FIXME: add ObjC decls */); + nTypedef*sizeof(TypedefDecl)+ + nLinkageSpecDecl*sizeof(LinkageSpecDecl)) + /* FIXME: add ObjC decls */); } void Decl::addDeclKind(const Kind k) { @@ -223,6 +226,9 @@ void Decl::addDeclKind(const Kind k) { case PropertyDecl: nObjCPropertyDecl++; break; + case LinkageSpec: + nLinkageSpecDecl++; + break; } } |