summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-dwarfdump/X86
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-11-08 15:33:54 +0100
committerPavel Labath <pavel@labath.sk>2019-11-22 10:08:39 +0100
commit01bb3b07c346c4215a83893d15f3c6022773ef83 (patch)
tree315bdb8fb90d49c40dfb17a68f2ef1a8529330ee /llvm/test/tools/llvm-dwarfdump/X86
parenta4cc895aee3b37e196f779883c8398a6cdd7ff68 (diff)
downloadbcm5719-llvm-01bb3b07c346c4215a83893d15f3c6022773ef83.tar.gz
bcm5719-llvm-01bb3b07c346c4215a83893d15f3c6022773ef83.zip
[DWARFVerifier] Use the new location list api
Summary: Instead of going to the debug_loc section directly, use new DWARFDie::getLocations instead. This means that the code will now automatically support debug_loclists sections. This is the last usage of the old debug_loc methods, and they can now be removed. Reviewers: dblaikie, JDevlieghere, aprantl, SouraVX Subscribers: hiraditya, probinson, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70534
Diffstat (limited to 'llvm/test/tools/llvm-dwarfdump/X86')
-rw-r--r--llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-completeness.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-completeness.s b/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-completeness.s
index e684c0b4556..b16f8658f87 100644
--- a/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-completeness.s
+++ b/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-completeness.s
@@ -29,6 +29,10 @@
.byte 1 # DW_CHILDREN_yes
.byte 37 # DW_AT_producer
.byte 8 # DW_FORM_string
+ .byte 17 # DW_AT_low_pc
+ .byte 1 # DW_FORM_addr
+ .byte 18 # DW_AT_high_pc
+ .byte 6 # DW_FORM_data4
.byte 0 # EOM(1)
.byte 0 # EOM(2)
@@ -102,6 +106,7 @@
.byte 0 # EOM(3)
.section .debug_info,"",@progbits
+
.Lcu_begin0:
.long .Lcu_end0-.Lcu_start0 # Length of Unit
.Lcu_start0:
@@ -110,6 +115,8 @@
.byte 8 # Address Size (in bytes)
.byte 1 # Abbrev [1] DW_TAG_compile_unit
.asciz "hand-written DWARF" # DW_AT_producer
+ .quad 0x0 # DW_AT_low_pc
+ .long 0x100 # DW_AT_high_pc
.byte 4 # Abbrev [4] DW_TAG_namespace
.asciz "namesp" # DW_AT_name
OpenPOWER on IntegriCloud