summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-abbrev-duplicate.s
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-03-29 13:47:57 +0000
committerPavel Labath <labath@google.com>2018-03-29 13:47:57 +0000
commit2d1fc4375f3885f0ee0ffcb58fc554530cd74ef2 (patch)
tree635ba95793254f745abd8cd5ca0280c2a6eb5e97 /llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-abbrev-duplicate.s
parent4f8f1e5115efd6c0bafbde0f1993b1298e85c3dd (diff)
downloadbcm5719-llvm-2d1fc4375f3885f0ee0ffcb58fc554530cd74ef2.tar.gz
bcm5719-llvm-2d1fc4375f3885f0ee0ffcb58fc554530cd74ef2.zip
.debug_names: Parse DW_IDX_die_offset as a reference
Before this patch we were parsing the attributes as section offsets, as that is what apple_names is doing. However, this is not correct as DWARF v5 specifies that this attribute should use the Reference form class. This also updates all the testcases (except the ones that deliberately pass a different form) to use the correct form class. llvm-svn: 328773
Diffstat (limited to 'llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-abbrev-duplicate.s')
-rw-r--r--llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-abbrev-duplicate.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-abbrev-duplicate.s b/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-abbrev-duplicate.s
index 5c5075ca25f..03b1af982de 100644
--- a/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-abbrev-duplicate.s
+++ b/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-abbrev-duplicate.s
@@ -50,13 +50,13 @@
.byte 46 # Abbrev code
.byte 46 # DW_TAG_subprogram
.byte 3 # DW_IDX_die_offset
- .byte 6 # DW_FORM_data4
+ .byte 19 # DW_FORM_ref4
.byte 0 # End of abbrev
.byte 0 # End of abbrev
.byte 46 # Abbrev code
.byte 46 # DW_TAG_subprogram
.byte 3 # DW_IDX_die_offset
- .byte 6 # DW_FORM_data4
+ .byte 19 # DW_FORM_ref4
.byte 0 # End of abbrev
.byte 0 # End of abbrev
.byte 0 # End of abbrev list
OpenPOWER on IntegriCloud