]> granicus.if.org Git - clang/commitdiff
decl counting isn't implemented yet for objc. -stats probably crashes for it.
authorChris Lattner <sabre@nondot.org>
Sun, 16 Sep 2007 19:23:04 +0000 (19:23 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 16 Sep 2007 19:23:04 +0000 (19:23 +0000)
Patch by Justin Handville

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42009 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Decl.cpp

index 4b464ee5e6e0e9480e7c2abe5ebe1c365d37c00c..285b184217386f807a274f59c000880ceee19045 100644 (file)
@@ -141,6 +141,13 @@ void Decl::addDeclKind(const Kind k) {
     case ObjcInterface:
       nInterfaceDecls++;
       break;
+    case ObjcClass:
+    case ObjcMethod:
+    case ObjcProtoMethod:
+    case ObjcProtocol:
+    case ObjcIvar:
+      assert(0 && "FIXME: Count these decls!");
+      break;
   }
 }