Set a flag on the AST type dump to see Objective-C

methods.  The Clang dump is now much more verbose,
but when somebody types "target modules lookup -t"
that is typically what they're looking for.

llvm-svn: 145892
This commit is contained in:
Sean Callanan 2011-12-06 01:44:41 +00:00
parent c77830d21e
commit 853604d596
1 changed files with 5 additions and 1 deletions

View File

@ -1285,7 +1285,11 @@ ClangASTType::DumpTypeDescription (clang::ASTContext *ast_context, clang_type_t
{
clang::ObjCInterfaceDecl *class_interface_decl = objc_class_type->getInterface();
if (class_interface_decl)
class_interface_decl->print(llvm_ostrm, ast_context->getPrintingPolicy(), s->GetIndentLevel());
{
clang::PrintingPolicy policy = ast_context->getPrintingPolicy();
policy.Dump = 1;
class_interface_decl->print(llvm_ostrm, policy, s->GetIndentLevel());
}
}
}
break;