Commit 5d94f34
committed
[DebugInfo] Produce debuginfo for nested types when the outer type is [[clang::standalone_debug]].
Without this, it's impossible to get debuginfo for a nested type that is unused (or that
clang mistakenly believes is unused due to e.g. deficiencies in -debug-info-kind=limited),
even by marking the "unused" nested type itself with [[clang::standalone_debug]].
This makes writing pretty-printers and similar things difficult.
The [[clang::standalone_debug]] attribute is not propagated to the nested type.
But after applying [[clang::standalone_debug]] to the outer type to ensure the nested type
appears in the debuginfo at all, a developer can also additionally apply the attribute to the
nested type if desired.1 parent ec1c73b commit 5d94f34
File tree
2 files changed
+33
-3
lines changed- clang
- lib/CodeGen
- test/CodeGenCXX
2 files changed
+33
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2075 | 2075 | | |
2076 | 2076 | | |
2077 | 2077 | | |
2078 | | - | |
| 2078 | + | |
| 2079 | + | |
2079 | 2080 | | |
2080 | | - | |
| 2081 | + | |
2081 | 2082 | | |
2082 | 2083 | | |
2083 | | - | |
| 2084 | + | |
2084 | 2085 | | |
2085 | 2086 | | |
2086 | 2087 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments