1 # clang++ helper.cpp -g -O2 -S
3 # void useFoo(int * x) {
14 .file 0 "/testLocListMultiple" "foo.cpp" md5 0x9410f31145d031fcc1f2464b809e409a
15 .globl _Z6useFooPi # -- Begin function _Z6useFooPi
17 .type _Z6useFooPi,@function
18 _Z6useFooPi
: # @_Z6useFooPi
20 .loc 0 2 0 # foo.cpp:2:0
23 #DEBUG_VALUE: useFoo:x <- $rdi
24 .loc 0 3 4 prologue_end # foo.cpp:3:4
26 .loc 0 4 1 # foo.cpp:4:1
30 .size _Z6useFooPi, .Lfunc_end0-_Z6useFooPi
33 .globl _Z3fooi # -- Begin function _Z3fooi
35 .type _Z3fooi,@function
38 .loc 0 6 0 # foo.cpp:6:0
41 #DEBUG_VALUE: foo:argc <- $edi
42 #DEBUG_VALUE: foo:x <- $edi
43 # kill: def $edi killed $edi def $rdi
44 #DEBUG_VALUE: useFoo:x <- undef
45 .loc 0 3 4 prologue_end # foo.cpp:3:4
48 #DEBUG_VALUE: foo:x <- $eax
49 .loc 0 9 4 # foo.cpp:9:4
53 .size _Z3fooi, .Lfunc_end1-_Z3fooi
56 .type fooVar,@object # @fooVar
64 .section .debug_loclists,"",@progbits
65 .long .Ldebug_list_header_end0-.Ldebug_list_header_start0 # Length
66 .Ldebug_list_header_start0:
68 .byte 8 # Address size
69 .byte 0 # Segment selector size
70 .long 1 # Offset entry count
71 .Lloclists_table_base0:
72 .long .Ldebug_loc0-.Lloclists_table_base0
74 .byte 4 # DW_LLE_offset_pair
75 .uleb128 .Lfunc_begin1-.Lfunc_begin0 # starting offset
76 .uleb128 .Ltmp1-.Lfunc_begin0 # ending offset
77 .byte 1 # Loc expr size
78 .byte 85 # super-register DW_OP_reg5
79 .byte 4 # DW_LLE_offset_pair
80 .uleb128 .Ltmp1-.Lfunc_begin0 # starting offset
81 .uleb128 .Lfunc_end1-.Lfunc_begin0 # ending offset
82 .byte 1 # Loc expr size
83 .byte 80 # super-register DW_OP_reg0
84 .byte 0 # DW_LLE_end_of_list
85 .Ldebug_list_header_end0:
86 .section .debug_abbrev,"",@progbits
87 .byte 1 # Abbreviation Code
88 .byte 17 # DW_TAG_compile_unit
89 .byte 1 # DW_CHILDREN_yes
90 .byte 37 # DW_AT_producer
91 .byte 37 # DW_FORM_strx1
92 .byte 19 # DW_AT_language
93 .byte 5 # DW_FORM_data2
95 .byte 37 # DW_FORM_strx1
96 .byte 114 # DW_AT_str_offsets_base
97 .byte 23 # DW_FORM_sec_offset
98 .byte 16 # DW_AT_stmt_list
99 .byte 23 # DW_FORM_sec_offset
100 .byte 27 # DW_AT_comp_dir
101 .byte 37 # DW_FORM_strx1
102 .byte 17 # DW_AT_low_pc
103 .byte 27 # DW_FORM_addrx
104 .byte 18 # DW_AT_high_pc
105 .byte 6 # DW_FORM_data4
106 .byte 115 # DW_AT_addr_base
107 .byte 23 # DW_FORM_sec_offset
108 .ascii "\214\001" # DW_AT_loclists_base
109 .byte 23 # DW_FORM_sec_offset
112 .byte 2 # Abbreviation Code
113 .byte 52 # DW_TAG_variable
114 .byte 0 # DW_CHILDREN_no
116 .byte 37 # DW_FORM_strx1
117 .byte 73 # DW_AT_type
118 .byte 19 # DW_FORM_ref4
119 .byte 63 # DW_AT_external
120 .byte 25 # DW_FORM_flag_present
121 .byte 58 # DW_AT_decl_file
122 .byte 11 # DW_FORM_data1
123 .byte 59 # DW_AT_decl_line
124 .byte 11 # DW_FORM_data1
125 .byte 2 # DW_AT_location
126 .byte 24 # DW_FORM_exprloc
129 .byte 3 # Abbreviation Code
130 .byte 36 # DW_TAG_base_type
131 .byte 0 # DW_CHILDREN_no
133 .byte 37 # DW_FORM_strx1
134 .byte 62 # DW_AT_encoding
135 .byte 11 # DW_FORM_data1
136 .byte 11 # DW_AT_byte_size
137 .byte 11 # DW_FORM_data1
140 .byte 4 # Abbreviation Code
141 .byte 46 # DW_TAG_subprogram
142 .byte 1 # DW_CHILDREN_yes
143 .byte 17 # DW_AT_low_pc
144 .byte 27 # DW_FORM_addrx
145 .byte 18 # DW_AT_high_pc
146 .byte 6 # DW_FORM_data4
147 .byte 64 # DW_AT_frame_base
148 .byte 24 # DW_FORM_exprloc
149 .byte 122 # DW_AT_call_all_calls
150 .byte 25 # DW_FORM_flag_present
151 .byte 49 # DW_AT_abstract_origin
152 .byte 19 # DW_FORM_ref4
155 .byte 5 # Abbreviation Code
156 .byte 5 # DW_TAG_formal_parameter
157 .byte 0 # DW_CHILDREN_no
158 .byte 2 # DW_AT_location
159 .byte 24 # DW_FORM_exprloc
160 .byte 49 # DW_AT_abstract_origin
161 .byte 19 # DW_FORM_ref4
164 .byte 6 # Abbreviation Code
165 .byte 46 # DW_TAG_subprogram
166 .byte 1 # DW_CHILDREN_yes
167 .byte 110 # DW_AT_linkage_name
168 .byte 37 # DW_FORM_strx1
170 .byte 37 # DW_FORM_strx1
171 .byte 58 # DW_AT_decl_file
172 .byte 11 # DW_FORM_data1
173 .byte 59 # DW_AT_decl_line
174 .byte 11 # DW_FORM_data1
175 .byte 63 # DW_AT_external
176 .byte 25 # DW_FORM_flag_present
177 .byte 32 # DW_AT_inline
178 .byte 33 # DW_FORM_implicit_const
182 .byte 7 # Abbreviation Code
183 .byte 5 # DW_TAG_formal_parameter
184 .byte 0 # DW_CHILDREN_no
186 .byte 37 # DW_FORM_strx1
187 .byte 58 # DW_AT_decl_file
188 .byte 11 # DW_FORM_data1
189 .byte 59 # DW_AT_decl_line
190 .byte 11 # DW_FORM_data1
191 .byte 73 # DW_AT_type
192 .byte 19 # DW_FORM_ref4
195 .byte 8 # Abbreviation Code
196 .byte 15 # DW_TAG_pointer_type
197 .byte 0 # DW_CHILDREN_no
198 .byte 73 # DW_AT_type
199 .byte 19 # DW_FORM_ref4
202 .byte 9 # Abbreviation Code
203 .byte 46 # DW_TAG_subprogram
204 .byte 1 # DW_CHILDREN_yes
205 .byte 17 # DW_AT_low_pc
206 .byte 27 # DW_FORM_addrx
207 .byte 18 # DW_AT_high_pc
208 .byte 6 # DW_FORM_data4
209 .byte 64 # DW_AT_frame_base
210 .byte 24 # DW_FORM_exprloc
211 .byte 122 # DW_AT_call_all_calls
212 .byte 25 # DW_FORM_flag_present
213 .byte 110 # DW_AT_linkage_name
214 .byte 37 # DW_FORM_strx1
216 .byte 37 # DW_FORM_strx1
217 .byte 58 # DW_AT_decl_file
218 .byte 11 # DW_FORM_data1
219 .byte 59 # DW_AT_decl_line
220 .byte 11 # DW_FORM_data1
221 .byte 73 # DW_AT_type
222 .byte 19 # DW_FORM_ref4
223 .byte 63 # DW_AT_external
224 .byte 25 # DW_FORM_flag_present
227 .byte 10 # Abbreviation Code
228 .byte 5 # DW_TAG_formal_parameter
229 .byte 0 # DW_CHILDREN_no
230 .byte 2 # DW_AT_location
231 .byte 24 # DW_FORM_exprloc
233 .byte 37 # DW_FORM_strx1
234 .byte 58 # DW_AT_decl_file
235 .byte 11 # DW_FORM_data1
236 .byte 59 # DW_AT_decl_line
237 .byte 11 # DW_FORM_data1
238 .byte 73 # DW_AT_type
239 .byte 19 # DW_FORM_ref4
242 .byte 11 # Abbreviation Code
243 .byte 52 # DW_TAG_variable
244 .byte 0 # DW_CHILDREN_no
245 .byte 2 # DW_AT_location
246 .byte 34 # DW_FORM_loclistx
248 .byte 37 # DW_FORM_strx1
249 .byte 58 # DW_AT_decl_file
250 .byte 11 # DW_FORM_data1
251 .byte 59 # DW_AT_decl_line
252 .byte 11 # DW_FORM_data1
253 .byte 73 # DW_AT_type
254 .byte 19 # DW_FORM_ref4
257 .byte 12 # Abbreviation Code
258 .byte 29 # DW_TAG_inlined_subroutine
259 .byte 0 # DW_CHILDREN_no
260 .byte 49 # DW_AT_abstract_origin
261 .byte 19 # DW_FORM_ref4
262 .byte 17 # DW_AT_low_pc
263 .byte 27 # DW_FORM_addrx
264 .byte 18 # DW_AT_high_pc
265 .byte 6 # DW_FORM_data4
266 .byte 88 # DW_AT_call_file
267 .byte 11 # DW_FORM_data1
268 .byte 89 # DW_AT_call_line
269 .byte 11 # DW_FORM_data1
270 .byte 87 # DW_AT_call_column
271 .byte 11 # DW_FORM_data1
275 .section .debug_info,"",@progbits
277 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
279 .short 5 # DWARF version number
280 .byte 1 # DWARF Unit Type
281 .byte 8 # Address Size (in bytes)
282 .long .debug_abbrev # Offset Into Abbrev. Section
283 .byte 1 # Abbrev [1] 0xc:0x83 DW_TAG_compile_unit
284 .byte 0 # DW_AT_producer
285 .short 33 # DW_AT_language
287 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
288 .long .Lline_table_start0 # DW_AT_stmt_list
289 .byte 2 # DW_AT_comp_dir
290 .byte 1 # DW_AT_low_pc
291 .long .Lfunc_end1-.Lfunc_begin0 # DW_AT_high_pc
292 .long .Laddr_table_base0 # DW_AT_addr_base
293 .long .Lloclists_table_base0 # DW_AT_loclists_base
294 .byte 2 # Abbrev [2] 0x27:0xb DW_TAG_variable
296 .long 50 # DW_AT_type
298 .byte 0 # DW_AT_decl_file
299 .byte 1 # DW_AT_decl_line
300 .byte 2 # DW_AT_location
303 .byte 3 # Abbrev [3] 0x32:0x4 DW_TAG_base_type
305 .byte 5 # DW_AT_encoding
306 .byte 4 # DW_AT_byte_size
307 .byte 4 # Abbrev [4] 0x36:0x14 DW_TAG_subprogram
308 .byte 1 # DW_AT_low_pc
309 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
310 .byte 1 # DW_AT_frame_base
312 # DW_AT_call_all_calls
313 .long 74 # DW_AT_abstract_origin
314 .byte 5 # Abbrev [5] 0x42:0x7 DW_TAG_formal_parameter
315 .byte 1 # DW_AT_location
317 .long 79 # DW_AT_abstract_origin
318 .byte 0 # End Of Children Mark
319 .byte 6 # Abbrev [6] 0x4a:0xe DW_TAG_subprogram
320 .byte 5 # DW_AT_linkage_name
322 .byte 0 # DW_AT_decl_file
323 .byte 2 # DW_AT_decl_line
326 .byte 7 # Abbrev [7] 0x4f:0x8 DW_TAG_formal_parameter
328 .byte 0 # DW_AT_decl_file
329 .byte 2 # DW_AT_decl_line
330 .long 88 # DW_AT_type
331 .byte 0 # End Of Children Mark
332 .byte 8 # Abbrev [8] 0x58:0x5 DW_TAG_pointer_type
333 .long 50 # DW_AT_type
334 .byte 9 # Abbrev [9] 0x5d:0x31 DW_TAG_subprogram
335 .byte 2 # DW_AT_low_pc
336 .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
337 .byte 1 # DW_AT_frame_base
339 # DW_AT_call_all_calls
340 .byte 8 # DW_AT_linkage_name
342 .byte 0 # DW_AT_decl_file
343 .byte 6 # DW_AT_decl_line
344 .long 50 # DW_AT_type
346 .byte 10 # Abbrev [10] 0x6d:0xa DW_TAG_formal_parameter
347 .byte 1 # DW_AT_location
349 .byte 10 # DW_AT_name
350 .byte 0 # DW_AT_decl_file
351 .byte 6 # DW_AT_decl_line
352 .long 50 # DW_AT_type
353 .byte 11 # Abbrev [11] 0x77:0x9 DW_TAG_variable
354 .byte 0 # DW_AT_location
356 .byte 0 # DW_AT_decl_file
357 .byte 7 # DW_AT_decl_line
358 .long 50 # DW_AT_type
359 .byte 12 # Abbrev [12] 0x80:0xd DW_TAG_inlined_subroutine
360 .long 74 # DW_AT_abstract_origin
361 .byte 2 # DW_AT_low_pc
362 .long .Ltmp1-.Lfunc_begin1 # DW_AT_high_pc
363 .byte 0 # DW_AT_call_file
364 .byte 8 # DW_AT_call_line
365 .byte 4 # DW_AT_call_column
366 .byte 0 # End Of Children Mark
367 .byte 0 # End Of Children Mark
369 .section .debug_str_offsets,"",@progbits
370 .long 48 # Length of String Offsets Set
374 .section .debug_str,"MS",@progbits,1
376 .asciz "clang version 15.0.0)" # string offset=0
378 .asciz "foo.cpp" # string offset=134
380 .asciz "/testLocListMultiple" # string offset=142
382 .asciz "fooVar" # string offset=199
384 .asciz "int" # string offset=206
386 .asciz "_Z6useFooPi" # string offset=210
388 .asciz "useFoo" # string offset=222
390 .asciz "x" # string offset=229
392 .asciz "_Z3fooi" # string offset=231
394 .asciz "foo" # string offset=239
396 .asciz "argc" # string offset=243
397 .section .debug_str_offsets,"",@progbits
408 .long .Linfo_string10
409 .section .debug_addr,"",@progbits
410 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution
412 .short 5 # DWARF version number
413 .byte 8 # Address size
414 .byte 0 # Segment selector size
420 .ident "clang version 15.0.0"
421 .section ".note.GNU-stack","",@progbits
423 .section .debug_line,"",@progbits