diff options
| author | Paul Robinson <paul.robinson@sony.com> | 2018-01-29 20:57:43 +0000 |
|---|---|---|
| committer | Paul Robinson <paul.robinson@sony.com> | 2018-01-29 20:57:43 +0000 |
| commit | bf750c80e9dce1b6e2c270adba64fc85f7fbc861 (patch) | |
| tree | d6b8c9388b9ee311cef8cc3b3be2a5aa74751aa8 /llvm/test | |
| parent | 015184b79ea85a12ba80f49442302361cb2706a8 (diff) | |
| download | bcm5719-llvm-bf750c80e9dce1b6e2c270adba64fc85f7fbc861.tar.gz bcm5719-llvm-bf750c80e9dce1b6e2c270adba64fc85f7fbc861.zip | |
[DWARFv5] Re-enable dumping a line table with no CU.
r323476 added support for DW_FORM_line_strp, and incorrectly made that
depend on having a DWARFUnit available. We shouldn't be tracking
.debug_line_str in DWARFUnit after all. After this patch, I can do an
NFC follow up and undo a bunch of the "plumbing" part of r323476.
Differential Revision: https://reviews.llvm.org/D42609
llvm-svn: 323691
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/DebugInfo/X86/dwarfdump-line-only.s | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/llvm/test/DebugInfo/X86/dwarfdump-line-only.s b/llvm/test/DebugInfo/X86/dwarfdump-line-only.s index bfcebd6c08a..c19ec30ff63 100644 --- a/llvm/test/DebugInfo/X86/dwarfdump-line-only.s +++ b/llvm/test/DebugInfo/X86/dwarfdump-line-only.s @@ -1,6 +1,5 @@ # Test object to verify dwarfdump handles dumping a DWARF v5 line table # without an associated unit. -# FIXME: Support FORM_strp in this situation. # # RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \ # RUN: llvm-dwarfdump -v - | FileCheck %s @@ -42,17 +41,17 @@ LH_5_params: # Directory table format .byte 1 # One element per directory entry .byte 1 # DW_LNCT_path - .byte 0x08 # DW_FORM_string + .byte 0x0e # DW_FORM_strp (-> .debug_str) # Directory table entries .byte 2 # Two directory entries - .asciz "Directory1" - .asciz "Directory2" + .long str_D1 + .long str_D2 # File table format .byte 4 # Four elements per file entry .byte 2 # DW_LNCT_directory_index .byte 0x0b # DW_FORM_data1 .byte 1 # DW_LNCT_path - .byte 0x08 # DW_FORM_string + .byte 0x1f # DW_FORM_line_strp (-> .debug_line_str) .byte 3 # DW_LNCT_timestamp .byte 0x0f # DW_FORM_udata .byte 4 # DW_LNCT_size @@ -60,11 +59,11 @@ LH_5_params: # File table entries .byte 2 # Two file entries .byte 1 - .asciz "File1" + .long ls_F1 .byte 0x51 .byte 0x52 .byte 0 - .asciz "File2" + .long ls_F2 .byte 0x53 .byte 0x54 LH_5_header_end: @@ -79,6 +78,14 @@ LH_5_header_end: .byte 1 # DW_LNE_end_sequence LH_5_end: + .section .debug_str,"MS",@progbits,1 +str_D1: .asciz "Directory1" +str_D2: .asciz "Directory2" + + .section .debug_line_str,"MS",@progbits,1 +ls_F1: .asciz "File1" +ls_F2: .asciz "File2" + # CHECK: Line table prologue: # CHECK: version: 5 # CHECK: address_size: 8 |

