diff options
author | Steve Naroff <snaroff@apple.com> | 2007-11-13 23:48:03 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-11-13 23:48:03 +0000 |
commit | aaa3cf8e52dd2b431a81fca5c28efe9a95587555 (patch) | |
tree | e3b6f0c26ae1011e26ce49fa258ddcde6bde6ea5 | |
parent | 6de88a873a4cbe06d72602eef57d68006730a80b (diff) |
Fix regression with ObjC method definitions and -ast-print
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44088 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Driver/ASTConsumers.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp index 2b7a806de4..e347ccb832 100644 --- a/Driver/ASTConsumers.cpp +++ b/Driver/ASTConsumers.cpp @@ -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)) { |