1 # RUN: llvm-mc %s -filetype obj -triple i686-pc-linux -o %t
2 # RUN: llvm-dwarfdump %t | FileCheck %s
4 # CHECK: DW_TAG_subprogram
5 # CHECK-NEXT: DW_AT_external (true)
6 # CHECK-NEXT: DW_AT_name ("fn4")
7 # CHECK-NEXT: DW_AT_linkage_name ("test")
8 # CHECK-NEXT: DW_AT_low_pc (0x00000000)
9 # CHECK-NEXT: DW_AT_high_pc (0x00000000)
10 # CHECK-NEXT: DW_AT_frame_base (DW_OP_call_frame_cfa)
11 # CHECK-NEXT: DW_AT_GNU_all_call_sites (true)
13 # CHECK: DW_TAG_GNU_call_site
14 # CHECK-NEXT: DW_AT_low_pc (0x00000000)
15 # CHECK-NEXT: DW_AT_abstract_origin (0x00000021 "test")
17 # CHECK: DW_TAG_GNU_call_site_parameter
18 # CHECK-NEXT: DW_AT_location (DW_OP_reg0 EAX)
19 # CHECK-NEXT: DW_AT_GNU_call_site_value (DW_OP_addr 0x0)
21 .section .debug_info,"",@progbits
27 .uleb128 0x1 # DW_TAG_compile_unit [1]
35 .uleb128 0xe # DW_TAG_subprogram [14]
40 .uleb128 0x1 # DW_AT_GNU_all_call_sites
43 .uleb128 0x12 # DW_TAG_GNU_call_site [18]
47 .uleb128 0x13 # DW_TAG_GNU_call_site_parameter [19]
60 .section .debug_abbrev,"",@progbits
62 .uleb128 0x11 # DW_TAG_compile_unit, DW_CHILDREN_yes
64 .uleb128 0x25 # DW_AT_producer, DW_FORM_strp
66 .uleb128 0x13 # DW_AT_language, DW_FORM_data1
68 .uleb128 0x3 # DW_AT_name, DW_FORM_strp
70 .uleb128 0x1b # DW_AT_comp_dir, DW_FORM_strp
72 .uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr
74 .uleb128 0x12 # DW_AT_high_pc, DW_FORM_data4
80 .uleb128 0x2e # DW_TAG_subprogram, DW_CHILDREN_yes
82 .uleb128 0x3f # DW_AT_external, DW_FORM_flag_present
84 .uleb128 0x3 # DW_AT_name, DW_FORM_string
86 .uleb128 0x6e # DW_AT_linkage_name, DW_FORM_strp
88 .uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr
90 .uleb128 0x12 # DW_AT_high_pc, DW_FORM_data4
92 .uleb128 0x40 # DW_AT_frame_base, DW_FORM_exprloc
94 .uleb128 0x2117 # DW_AT_GNU_all_call_sites, DW_FORM_flag_present
100 .uleb128 0x4109 # DW_TAG_GNU_call_site, DW_CHILDREN_yes
102 .uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr
104 .uleb128 0x31 # DW_AT_abstract_origin, DW_FORM_ref4
110 .uleb128 0x410a # DW_TAG_GNU_call_site_parameter, DW_CHILDREN_no
112 .uleb128 0x2 # DW_AT_location, DW_FORM_exprloc
114 .uleb128 0x2111 # DW_AT_GNU_call_site_value, DW_FORM_exprloc
120 .section .debug_str,"MS",@progbits,1