From 1a2b90d081b6eec2940f6826958403a9d2be0b24 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Fri, 23 May 2008 18:50:58 +0000 Subject: [PATCH] Make sure method definitions get output with -ast-dump. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51494 91177308-0d34-0410-b5e6-96231b3b80d8 --- Driver/ASTConsumers.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp index 3276228e60..3383dd38fd 100644 --- a/Driver/ASTConsumers.cpp +++ b/Driver/ASTConsumers.cpp @@ -462,6 +462,11 @@ namespace { } else if (ObjCMethodDecl* MD = dyn_cast(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(D)) { Out << "Read objc implementation decl\n"; }