From 269b10d493d5a78b7870f814b50bc4a87e0256f3 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 23 Jan 2008 01:34:33 +0000 Subject: [PATCH] Missing ObjC stuff. Patch by Mike Stump. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46268 91177308-0d34-0410-b5e6-96231b3b80d8 --- AST/Decl.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/AST/Decl.cpp b/AST/Decl.cpp index 8ee382c237..78916c53b7 100644 --- a/AST/Decl.cpp +++ b/AST/Decl.cpp @@ -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) { -- 2.40.0