[PATCH] D41785: Print the qualified name when dumping deserialized decls.

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 20 02:42:45 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL332817: Print the qualified name when dumping deserialized decls. (authored by vvassilev, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D41785?vs=128791&id=147706#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D41785

Files:
  cfe/trunk/lib/Frontend/FrontendAction.cpp


Index: cfe/trunk/lib/Frontend/FrontendAction.cpp
===================================================================
--- cfe/trunk/lib/Frontend/FrontendAction.cpp
+++ cfe/trunk/lib/Frontend/FrontendAction.cpp
@@ -88,8 +88,10 @@
 
   void DeclRead(serialization::DeclID ID, const Decl *D) override {
     llvm::outs() << "PCH DECL: " << D->getDeclKindName();
-    if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
-      llvm::outs() << " - " << *ND;
+    if (const NamedDecl *ND = dyn_cast<NamedDecl>(D)) {
+      llvm::outs() << " - ";
+      ND->printQualifiedName(llvm::outs());
+    }
     llvm::outs() << "\n";
 
     DelegatingDeserializationListener::DeclRead(ID, D);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41785.147706.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180520/690494c0/attachment.bin>


More information about the cfe-commits mailing list