[PATCH] D145803: [clang][DebugInfo] Emit DW_AT_type of preferred name if available
Michael Buch via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 26 14:06:36 PDT 2023
Michael137 added inline comments.
================
Comment at: clang/test/CodeGen/preferred_name.cpp:49
+
+ Foo<Foo<int>> varFooInt;
+
----------------
probinson wrote:
> This doesn't become `Foo<BarInt>` ?
The name stays as `Foo<Foo<int>>` but the type of the template parameter becomes `BarInt`. So the dwarf would look like:
```
DW_TAG_structure_type
DW_AT_name ("Foo<Foo<int> >")
DW_TAG_template_type_parameter
DW_AT_type (0x00000095 "BarInt")
DW_AT_name ("T")
```
Will add the parameter metadata to the test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145803/new/
https://reviews.llvm.org/D145803
More information about the cfe-commits
mailing list