]> granicus.if.org Git - clang/commitdiff
Missing ObjC stuff. Patch by Mike Stump.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 23 Jan 2008 01:34:33 +0000 (01:34 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 23 Jan 2008 01:34:33 +0000 (01:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46268 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Decl.cpp

index 8ee382c2375a2d8d331d0a7c775b5bf344aa16b0..78916c53b7cecb9eff8c006eb92840c4b2b08e38 100644 (file)
@@ -158,8 +158,19 @@ void Decl::PrintStats() {
              nFieldDecls*sizeof(FieldDecl)+nSUC*sizeof(RecordDecl)+
              nEnumDecls*sizeof(EnumDecl)+nEnumConst*sizeof(EnumConstantDecl)+
              nTypedef*sizeof(TypedefDecl)+
-             nLinkageSpecDecl*sizeof(LinkageSpecDecl))
-         /* FIXME: add ObjC decls */);
+              nInterfaceDecls*sizeof(ObjCInterfaceDecl)+
+              nIvarDecls*sizeof(ObjCIvarDecl)+
+              nClassDecls*sizeof(ObjCClassDecl)+
+              nMethodDecls*sizeof(ObjCMethodDecl)+
+              nProtocolDecls*sizeof(ObjCProtocolDecl)+
+              nForwardProtocolDecls*sizeof(ObjCForwardProtocolDecl)+
+              nCategoryDecls*sizeof(ObjCCategoryDecl)+
+              nObjCImplementationDecls*sizeof(ObjCImplementationDecl)+
+              nObjCCategoryImpl*sizeof(ObjCCategoryImplDecl)+
+              nObjCCompatibleAlias*sizeof(ObjCCompatibleAliasDecl)+
+              nObjCPropertyDecl*sizeof(ObjCPropertyDecl)+
+              nLinkageSpecDecl*sizeof(LinkageSpecDecl)));
+    
 }
 
 void Decl::addDeclKind(const Kind k) {