[clang] dff3e28 - [clang][Interp][NFC] Print qualified name of Descriptor sources

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 17 10:08:14 PDT 2024


Author: Timm Bäder
Date: 2024-03-17T18:07:51+01:00
New Revision: dff3e28df9b92e4d3102a0f8012352cebfc9461d

URL: https://github.com/llvm/llvm-project/commit/dff3e28df9b92e4d3102a0f8012352cebfc9461d
DIFF: https://github.com/llvm/llvm-project/commit/dff3e28df9b92e4d3102a0f8012352cebfc9461d.diff

LOG: [clang][Interp][NFC] Print qualified name of Descriptor sources

Added: 
    

Modified: 
    clang/lib/AST/Interp/Disasm.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/Disasm.cpp b/clang/lib/AST/Interp/Disasm.cpp
index 160701f4d4a760..390d79d44b0a74 100644
--- a/clang/lib/AST/Interp/Disasm.cpp
+++ b/clang/lib/AST/Interp/Disasm.cpp
@@ -183,7 +183,7 @@ LLVM_DUMP_METHOD void Descriptor::dump(llvm::raw_ostream &OS) const {
   {
     ColorScope SC(OS, true, {llvm::raw_ostream::BLUE, true});
     if (const auto *ND = dyn_cast_if_present<NamedDecl>(asDecl()))
-      OS << ND->getName();
+      ND->printQualifiedName(OS);
     else if (asExpr())
       OS << "expr (TODO)";
   }


        


More information about the cfe-commits mailing list