From b212149560e3d1403b49c5d0a44eac271a9f0938 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sun, 20 May 2018 09:38:52 +0000 Subject: [PATCH] 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 --- lib/Frontend/FrontendAction.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.40.0