brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · f14316b Raw
43 lines · plain
1# RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj | \2# RUN:   llvm-dwarfdump - | \3# RUN:   FileCheck %s4 5# This checks that the operand of DW_OP_call_ref is always parsed corresponding6# to the DWARF format of CU. Our code used to have an exception for verson == 2,7# where it treated the operand like it had the size of address, but since8# DW_OP_call_ref was introduced only in DWARF3, the code could be simplified.9 10# CHECK: DW_TAG_variable11# CHECK-NEXT: DW_AT_location (DW_OP_call_ref 0x11223344)12 13	.section	.debug_abbrev,"",@progbits14	.byte	1                       # Abbreviation Code15	.byte	17                      # DW_TAG_compile_unit16	.byte	1                       # DW_CHILDREN_yes17	.byte	0                       # EOM(1)18	.byte	0                       # EOM(2)19	.byte	5                       # Abbreviation Code20	.byte	52                      # DW_TAG_variable21	.byte	0                       # DW_CHILDREN_no22	.byte	2                       # DW_AT_location23	.byte	10                      # DW_FORM_block124	.byte	0                       # EOM(1)25	.byte	0                       # EOM(2)26	.byte	0                       # EOM(3)27 28	.section	.debug_info,"",@progbits29	.long	.Lcu_end-.Lcu_start     # Length of Unit30.Lcu_start:31	.short	2                       # DWARF version number32	.long	.debug_abbrev           # Offset Into Abbrev. Section33	.byte	8                       # Address Size (in bytes)34	.byte	1                       # Abbrev [1] DW_TAG_compile_unit35	.byte	5                       # Abbrev [5] DW_TAG_variable36	.byte	.Lloc_end-.Lloc_begin   # DW_AT_location37.Lloc_begin:38	.byte	154                     # DW_OP_call_ref39	.long	0x11223344              # Offset40.Lloc_end:41	.byte	0                       # End Of Children Mark42.Lcu_end:43