]> granicus.if.org Git - clang/commitdiff
Fix regression with ObjC method definitions and -ast-print
authorSteve Naroff <snaroff@apple.com>
Tue, 13 Nov 2007 23:48:03 +0000 (23:48 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 13 Nov 2007 23:48:03 +0000 (23:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44088 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/ASTConsumers.cpp

index 2b7a806de4222cfa5bcd6a5d0cacf27dae5bc6e5..e347ccb832a3bef3f609b7da2ed85ac59e758dac 100644 (file)
@@ -267,6 +267,9 @@ namespace {
           FD->getBody()->dumpPretty();
           fprintf(stderr, "\n");
         }
+      } else if (isa<ObjcMethodDecl>(D)) {
+           // Do nothing, methods definitions are printed in
+               // PrintObjcImplementationDecl.
       } else if (TypedefDecl *TD = dyn_cast<TypedefDecl>(D)) {
         PrintTypeDefDecl(TD);
       } else if (ObjcInterfaceDecl *OID = dyn_cast<ObjcInterfaceDecl>(D)) {