[cfe-commits] r42967 - /cfe/trunk/Driver/ASTConsumers.cpp

Steve Naroff snaroff at apple.com
Sun Oct 14 10:03:01 PDT 2007


Author: snaroff
Date: Sun Oct 14 12:03:01 2007
New Revision: 42967

URL: http://llvm.org/viewvc/llvm-project?rev=42967&view=rev
Log:

Fix -ast-dump for ObjC.


Modified:
    cfe/trunk/Driver/ASTConsumers.cpp

Modified: cfe/trunk/Driver/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.cpp?rev=42967&r1=42966&r2=42967&view=diff

==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Sun Oct 14 12:03:01 2007
@@ -198,8 +198,14 @@
         fprintf(stderr, "Read top-level variable decl: '%s'\n", SD->getName());
       } else if (ObjcInterfaceDecl *OID = dyn_cast<ObjcInterfaceDecl>(D)) {
         fprintf(stderr, "Read objc interface '%s'\n", OID->getName());
+      } else if (ObjcProtocolDecl *OPD = dyn_cast<ObjcProtocolDecl>(D)) {
+        fprintf(stderr, "Read objc protocol '%s'\n", OPD->getName());
+      } else if (ObjcCategoryDecl *OCD = dyn_cast<ObjcCategoryDecl>(D)) {
+        fprintf(stderr, "Read objc category '%s'\n", OCD->getName());
       } else if (isa<ObjcForwardProtocolDecl>(D)) {
         fprintf(stderr, "Read objc fwd protocol decl\n");
+      } else if (isa<ObjcClassDecl>(D)) {
+        fprintf(stderr, "Read objc fwd class decl\n");
       } else {
         assert(0 && "Unknown decl type!");
       }





More information about the cfe-commits mailing list