diff options
author | Eric Christopher <echristo@gmail.com> | 2013-11-16 00:18:40 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-11-16 00:18:40 +0000 |
commit | 87fd14d9b52079828c5db4e1e4878046a7488f81 (patch) | |
tree | 855cdb247168924efa7da1785146d3ddd642e45e /test | |
parent | 7b8677109452dc3f106f931edab2d1ccaf1d06b1 (diff) | |
download | external_llvm-87fd14d9b52079828c5db4e1e4878046a7488f81.zip external_llvm-87fd14d9b52079828c5db4e1e4878046a7488f81.tar.gz external_llvm-87fd14d9b52079828c5db4e1e4878046a7488f81.tar.bz2 |
For dwarf4 use the correct form for referencing debug_loc locations,
and update test cases accordingly.
This doesn't affect the output dumped using llvm-dwarfdump, but
readelf does now dump the debug_loc section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/DebugInfo/X86/block-capture.ll | 2 | ||||
-rw-r--r-- | test/DebugInfo/X86/op_deref.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/DebugInfo/X86/block-capture.ll b/test/DebugInfo/X86/block-capture.ll index a4acb10..1853607 100644 --- a/test/DebugInfo/X86/block-capture.ll +++ b/test/DebugInfo/X86/block-capture.ll @@ -5,7 +5,7 @@ ; CHECK: DW_TAG_subprogram [3] ; CHECK: DW_TAG_variable [5] ; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[{{.*}}] = "block") -; CHECK: DW_AT_location [DW_FORM_data4] ({{.*}}) +; CHECK: DW_AT_location [DW_FORM_sec_offset] ({{.*}}) %struct.__block_descriptor = type { i64, i64 } %struct.__block_literal_generic = type { i8*, i32, i32, i8*, %struct.__block_descriptor* } diff --git a/test/DebugInfo/X86/op_deref.ll b/test/DebugInfo/X86/op_deref.ll index 786737a..6cb4496 100644 --- a/test/DebugInfo/X86/op_deref.ll +++ b/test/DebugInfo/X86/op_deref.ll @@ -4,7 +4,7 @@ ; DW-CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000067] = "vla") ; FIXME: The location here needs to be fixed, but llvm-dwarfdump doesn't handle ; DW_AT_location lists yet. -; DW-CHECK: DW_AT_location [DW_FORM_data4] (0x00000000) +; DW-CHECK: DW_AT_location [DW_FORM_sec_offset] (0x00000000) ; Unfortunately llvm-dwarfdump can't unparse a list of DW_AT_locations ; right now, so we check the asm output: |