From: Vassil Vassilev Date: Sun, 20 May 2018 09:38:52 +0000 (+0000) Subject: Print the qualified name when dumping deserialized decls. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b212149560e3d1403b49c5d0a44eac271a9f0938;p=clang Print the qualified name when dumping deserialized decls. This is useful to understand and debug the lazy template specializations used in the pch and modules. Differential Revision: https://reviews.llvm.org/D41785 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332817 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/FrontendAction.cpp b/lib/Frontend/FrontendAction.cpp index 122dc23388..7711d8460c 100644 --- a/lib/Frontend/FrontendAction.cpp +++ b/lib/Frontend/FrontendAction.cpp @@ -88,8 +88,10 @@ public: void DeclRead(serialization::DeclID ID, const Decl *D) override { llvm::outs() << "PCH DECL: " << D->getDeclKindName(); - if (const NamedDecl *ND = dyn_cast(D)) - llvm::outs() << " - " << *ND; + if (const NamedDecl *ND = dyn_cast(D)) { + llvm::outs() << " - "; + ND->printQualifiedName(llvm::outs()); + } llvm::outs() << "\n"; DelegatingDeserializationListener::DeclRead(ID, D);