[cfe-commits] r51494 - /cfe/trunk/Driver/ASTConsumers.cpp
Steve Naroff
snaroff at apple.com
Fri May 23 11:50:58 PDT 2008
Author: snaroff
Date: Fri May 23 13:50:58 2008
New Revision: 51494
URL: http://llvm.org/viewvc/llvm-project?rev=51494&view=rev
Log:
Make sure method definitions get output with -ast-dump.
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=51494&r1=51493&r2=51494&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Fri May 23 13:50:58 2008
@@ -462,6 +462,11 @@
} else if (ObjCMethodDecl* MD = dyn_cast<ObjCMethodDecl>(D)) {
Out << "Read objc method decl: '" << MD->getSelector().getName()
<< "'\n";
+ if (MD->getBody()) {
+ // FIXME: convert dumper to use std::ostream?
+ MD->getBody()->dumpAll(*SM);
+ Out << '\n';
+ }
} else if (isa<ObjCImplementationDecl>(D)) {
Out << "Read objc implementation decl\n";
}
More information about the cfe-commits
mailing list