summaryrefslogtreecommitdiffstats
path: root/clang/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
commitbcc3a4bf6421de70637df58db8b9d0fc72154ef9 (patch)
tree2019d7aef2eea31995ec557044b67a358c7d878a /clang/AST/Decl.cpp
parent63a8452e9ce57568b502808dc0e59209d7e71b54 (diff)
downloadbcm5719-llvm-bcc3a4bf6421de70637df58db8b9d0fc72154ef9.tar.gz
bcm5719-llvm-bcc3a4bf6421de70637df58db8b9d0fc72154ef9.zip
Handle top-level asm declarations.
llvm-svn: 46855
Diffstat (limited to 'clang/AST/Decl.cpp')
-rw-r--r--clang/AST/Decl.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/AST/Decl.cpp b/clang/AST/Decl.cpp
index 78916c53b7c..55abe6f34d5 100644
--- a/clang/AST/Decl.cpp
+++ b/clang/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;
}
}
OpenPOWER on IntegriCloud