[llvm] [llvm][DebugInfo] Unwrap template parameters that are typedefs when reconstructing DIE names (PR #168734)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 19 08:29:18 PST 2025
================
@@ -553,10 +570,9 @@ bool DWARFTypePrinter<DieType>::appendTemplateParameters(DieType D,
}
if (C.getTag() != dwarf::DW_TAG_template_type_parameter)
continue;
- auto TypeAttr = C.find(dwarf::DW_AT_type);
Sep();
- appendQualifiedName(TypeAttr ? detail::resolveReferencedType(C, *TypeAttr)
- : DieType());
+
+ appendQualifiedName(detail::unwrapReferencedTypedefType(C));
----------------
Michael137 wrote:
Wasn't entirely sure if this was the right place. We could just unwrap the DIE in `appendUnqualifiedNameBefore` for `DW_TAG_typedef`. But that felt wrong (though that didn't fail any tests, so maybe we usually never get to `appendUnqualifiedNameBefore` for typedef types?). But still felt a bit off
https://github.com/llvm/llvm-project/pull/168734
More information about the llvm-commits
mailing list