[cfe-commits] r44088 - /cfe/trunk/Driver/ASTConsumers.cpp
Steve Naroff
snaroff at apple.com
Tue Nov 13 15:48:04 PST 2007
Author: snaroff
Date: Tue Nov 13 17:48:03 2007
New Revision: 44088
URL: http://llvm.org/viewvc/llvm-project?rev=44088&view=rev
Log:
Fix regression with ObjC method definitions and -ast-print
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=44088&r1=44087&r2=44088&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Tue Nov 13 17:48:03 2007
@@ -267,6 +267,9 @@
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)) {
More information about the cfe-commits
mailing list