Summary
Starting with DWARFv5, DW_AT_default_value can be used to indicate
that a template argument has a default value. With this patch LLVM
will emit the this attribute earlier versions of DWARF, unless
compiling with -gstrict-dwarf.
Differential D139953
[llvm][DebugInfo] Backport DW_AT_default_value for template args Michael137 on Dec 13 2022, 9:56 AM. Authored by
Details Summary Starting with DWARFv5, DW_AT_default_value can be used to indicate
Diff Detail
Event TimelineComment Actions Looks good to me - maybe minor optional tweaks to the test.
Comment Actions
Comment Actions
CHECK-LABEL doesn't have to match a line in the file uniquely. What happens is that all the -LABEL directives are processed first, in order, subdividing the input text into regions. Then the non-LABEL directives are processed within their respective regions. So you could have CHECK-LABEL: DW_TAG CHECK: DW_AT_name ("foo") CHECK-LABEL: DW_TAG CHECK: DW_AT_location CHECK-LABEL: DW_TAG which would search only the first tag for "foo" and only the second tag for the location attribute. Comment Actions
I mean, it's good practice if they do match uniquely; that way you don't get excessively confusing results when the output changes, and things start matching where you didn't expect. But it's not a requirement. Comment Actions I think this is good - with some check after the template list to constrain the dag/not checks to only be within the intended tag, not accidentally skip past into some other tag.
|
llvm-dwarfdump fails if x86 is unconfigured.