aboutsummaryrefslogtreecommitdiff
path: root/AST/Decl.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-02-07 17:19:11 +0000
committerAnders Carlsson <andersca@mac.com>2008-02-07 17:19:11 +0000
commit61900f0ef4fc705e62609939f30a375a9576e43d (patch)
treec3d572b8efb80268bb9418d182177396a9be9777 /AST/Decl.cpp
parent419154d6d8e80ff2083dd039095781a0eb99444f (diff)
Handle top-level asm declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'AST/Decl.cpp')
-rw-r--r--AST/Decl.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/AST/Decl.cpp b/AST/Decl.cpp
index 78916c53b7..55abe6f34d 100644
--- a/AST/Decl.cpp
+++ b/AST/Decl.cpp
@@ -38,6 +38,7 @@ static unsigned nObjCCategoryImpl = 0;
static unsigned nObjCCompatibleAlias = 0;
static unsigned nObjCPropertyDecl = 0;
static unsigned nLinkageSpecDecl = 0;
+static unsigned nFileScopeAsmDecl = 0;
static bool StatSwitch = false;
@@ -169,7 +170,8 @@ void Decl::PrintStats() {
nObjCCategoryImpl*sizeof(ObjCCategoryImplDecl)+
nObjCCompatibleAlias*sizeof(ObjCCompatibleAliasDecl)+
nObjCPropertyDecl*sizeof(ObjCPropertyDecl)+
- nLinkageSpecDecl*sizeof(LinkageSpecDecl)));
+ nLinkageSpecDecl*sizeof(LinkageSpecDecl)+
+ nFileScopeAsmDecl*sizeof(FileScopeAsmDecl)));
}
@@ -240,6 +242,9 @@ void Decl::addDeclKind(const Kind k) {
case LinkageSpec:
nLinkageSpecDecl++;
break;
+ case FileScopeAsm:
+ nFileScopeAsmDecl++;
+ break;
}
}