1 # -g2 -gdwarf-4 main.cpp -O1
2 # static int helper(int i) {
5 # void may_not_exist(void) __attribute__ ((weak));
6 # int main(int argc, char *argv[]) {
10 # [[clang::always_inline]] j = helper(argc);
16 .globl main # -- Begin function main
21 .file 1 "." "main.cpp"
22 .loc 1 5 0 # main.cpp:5:0
25 #DEBUG_VALUE: main:argc <- $edi
26 #DEBUG_VALUE: main:argv <- $rsi
28 .cfi_def_cfa_offset 16
32 .loc 1 6 7 prologue_end # main.cpp:6:7
33 cmpq $
0, _Z13may_not_existv@GOTPCREL
(%rip
)
37 #DEBUG_VALUE: main:argc <- $ebx
38 #DEBUG_VALUE: main:argv <- $rsi
39 .loc 1 7 5 # main.cpp:7:5
40 callq _Z13may_not_existv@PLT
42 #DEBUG_VALUE: main:argv <- [DW_OP_LLVM_entry_value 1] $rsi
44 #DEBUG_VALUE: main:argc <- $ebx
45 #DEBUG_VALUE: main:argv <- [DW_OP_LLVM_entry_value 1] $rsi
46 #DEBUG_VALUE: main:j <- 0
47 #DEBUG_VALUE: helper:i <- $ebx
48 .loc 1 2 10 # main.cpp:2:10
51 #DEBUG_VALUE: main:argc <- [DW_OP_LLVM_entry_value 1] $edi
52 #DEBUG_VALUE: helper:i <- $ebx
53 #DEBUG_VALUE: main:j <- $ebx
54 .loc 1 10 3 # main.cpp:10:3
56 .loc 1 10 3 epilogue_begin is_stmt 0 # main.cpp:10:3
59 #DEBUG_VALUE: helper:i <- $eax
60 #DEBUG_VALUE: main:j <- $eax
65 .size main, .Lfunc_end0-main
68 .section .debug_loc,"",@progbits
70 .quad .Lfunc_begin0-.Lfunc_begin0
71 .quad .Ltmp1-.Lfunc_begin0
72 .short 1 # Loc expr size
73 .byte 85 # super-register DW_OP_reg5
74 .quad .Ltmp1-.Lfunc_begin0
75 .quad .Ltmp3-.Lfunc_begin0
76 .short 1 # Loc expr size
77 .byte 83 # super-register DW_OP_reg3
78 .quad .Ltmp3-.Lfunc_begin0
79 .quad .Lfunc_end0-.Lfunc_begin0
80 .short 4 # Loc expr size
81 .byte 243 # DW_OP_GNU_entry_value
83 .byte 85 # super-register DW_OP_reg5
84 .byte 159 # DW_OP_stack_value
88 .quad .Lfunc_begin0-.Lfunc_begin0
89 .quad .Ltmp2-.Lfunc_begin0
90 .short 1 # Loc expr size
92 .quad .Ltmp2-.Lfunc_begin0
93 .quad .Lfunc_end0-.Lfunc_begin0
94 .short 4 # Loc expr size
95 .byte 243 # DW_OP_GNU_entry_value
98 .byte 159 # DW_OP_stack_value
102 .quad .Ltmp2-.Lfunc_begin0
103 .quad .Ltmp3-.Lfunc_begin0
104 .short 3 # Loc expr size
105 .byte 17 # DW_OP_consts
107 .byte 159 # DW_OP_stack_value
108 .quad .Ltmp3-.Lfunc_begin0
109 .quad .Ltmp4-.Lfunc_begin0
110 .short 1 # Loc expr size
111 .byte 83 # super-register DW_OP_reg3
112 .quad .Ltmp4-.Lfunc_begin0
113 .quad .Lfunc_end0-.Lfunc_begin0
114 .short 1 # Loc expr size
115 .byte 80 # super-register DW_OP_reg0
118 .section .debug_abbrev,"",@progbits
119 .byte 1 # Abbreviation Code
120 .byte 17 # DW_TAG_compile_unit
121 .byte 1 # DW_CHILDREN_yes
122 .byte 37 # DW_AT_producer
123 .byte 14 # DW_FORM_strp
124 .byte 19 # DW_AT_language
125 .byte 5 # DW_FORM_data2
127 .byte 14 # DW_FORM_strp
128 .byte 16 # DW_AT_stmt_list
129 .byte 23 # DW_FORM_sec_offset
130 .byte 27 # DW_AT_comp_dir
131 .byte 14 # DW_FORM_strp
132 .byte 17 # DW_AT_low_pc
133 .byte 1 # DW_FORM_addr
134 .byte 18 # DW_AT_high_pc
135 .byte 6 # DW_FORM_data4
138 .byte 2 # Abbreviation Code
139 .byte 46 # DW_TAG_subprogram
140 .byte 1 # DW_CHILDREN_yes
141 .byte 110 # DW_AT_linkage_name
142 .byte 14 # DW_FORM_strp
144 .byte 14 # DW_FORM_strp
145 .byte 58 # DW_AT_decl_file
146 .byte 11 # DW_FORM_data1
147 .byte 59 # DW_AT_decl_line
148 .byte 11 # DW_FORM_data1
149 .byte 73 # DW_AT_type
150 .byte 19 # DW_FORM_ref4
151 .byte 32 # DW_AT_inline
152 .byte 11 # DW_FORM_data1
155 .byte 3 # Abbreviation Code
156 .byte 5 # DW_TAG_formal_parameter
157 .byte 0 # DW_CHILDREN_no
159 .byte 14 # DW_FORM_strp
160 .byte 58 # DW_AT_decl_file
161 .byte 11 # DW_FORM_data1
162 .byte 59 # DW_AT_decl_line
163 .byte 11 # DW_FORM_data1
164 .byte 73 # DW_AT_type
165 .byte 19 # DW_FORM_ref4
168 .byte 4 # Abbreviation Code
169 .byte 36 # DW_TAG_base_type
170 .byte 0 # DW_CHILDREN_no
172 .byte 14 # DW_FORM_strp
173 .byte 62 # DW_AT_encoding
174 .byte 11 # DW_FORM_data1
175 .byte 11 # DW_AT_byte_size
176 .byte 11 # DW_FORM_data1
179 .byte 5 # Abbreviation Code
180 .byte 46 # DW_TAG_subprogram
181 .byte 1 # DW_CHILDREN_yes
182 .byte 17 # DW_AT_low_pc
183 .byte 1 # DW_FORM_addr
184 .byte 18 # DW_AT_high_pc
185 .byte 6 # DW_FORM_data4
186 .byte 64 # DW_AT_frame_base
187 .byte 24 # DW_FORM_exprloc
188 .ascii "\227B" # DW_AT_GNU_all_call_sites
189 .byte 25 # DW_FORM_flag_present
191 .byte 14 # DW_FORM_strp
192 .byte 58 # DW_AT_decl_file
193 .byte 11 # DW_FORM_data1
194 .byte 59 # DW_AT_decl_line
195 .byte 11 # DW_FORM_data1
196 .byte 73 # DW_AT_type
197 .byte 19 # DW_FORM_ref4
198 .byte 63 # DW_AT_external
199 .byte 25 # DW_FORM_flag_present
202 .byte 6 # Abbreviation Code
203 .byte 5 # DW_TAG_formal_parameter
204 .byte 0 # DW_CHILDREN_no
205 .byte 2 # DW_AT_location
206 .byte 23 # DW_FORM_sec_offset
208 .byte 14 # DW_FORM_strp
209 .byte 58 # DW_AT_decl_file
210 .byte 11 # DW_FORM_data1
211 .byte 59 # DW_AT_decl_line
212 .byte 11 # DW_FORM_data1
213 .byte 73 # DW_AT_type
214 .byte 19 # DW_FORM_ref4
217 .byte 7 # Abbreviation Code
218 .byte 52 # DW_TAG_variable
219 .byte 0 # DW_CHILDREN_no
220 .byte 2 # DW_AT_location
221 .byte 23 # DW_FORM_sec_offset
223 .byte 14 # DW_FORM_strp
224 .byte 58 # DW_AT_decl_file
225 .byte 11 # DW_FORM_data1
226 .byte 59 # DW_AT_decl_line
227 .byte 11 # DW_FORM_data1
228 .byte 73 # DW_AT_type
229 .byte 19 # DW_FORM_ref4
232 .byte 8 # Abbreviation Code
233 .byte 29 # DW_TAG_inlined_subroutine
234 .byte 1 # DW_CHILDREN_yes
235 .byte 49 # DW_AT_abstract_origin
236 .byte 19 # DW_FORM_ref4
237 .byte 17 # DW_AT_low_pc
238 .byte 1 # DW_FORM_addr
239 .byte 18 # DW_AT_high_pc
240 .byte 6 # DW_FORM_data4
241 .byte 88 # DW_AT_call_file
242 .byte 11 # DW_FORM_data1
243 .byte 89 # DW_AT_call_line
244 .byte 11 # DW_FORM_data1
245 .byte 87 # DW_AT_call_column
246 .byte 11 # DW_FORM_data1
249 .byte 9 # Abbreviation Code
250 .byte 5 # DW_TAG_formal_parameter
251 .byte 0 # DW_CHILDREN_no
252 .byte 2 # DW_AT_location
253 .byte 24 # DW_FORM_exprloc
254 .byte 49 # DW_AT_abstract_origin
255 .byte 19 # DW_FORM_ref4
258 .byte 10 # Abbreviation Code
259 .ascii "\211\202\001" # DW_TAG_GNU_call_site
260 .byte 0 # DW_CHILDREN_no
261 .byte 49 # DW_AT_abstract_origin
262 .byte 19 # DW_FORM_ref4
263 .byte 17 # DW_AT_low_pc
264 .byte 1 # DW_FORM_addr
267 .byte 11 # Abbreviation Code
268 .byte 46 # DW_TAG_subprogram
269 .byte 0 # DW_CHILDREN_no
270 .byte 110 # DW_AT_linkage_name
271 .byte 14 # DW_FORM_strp
273 .byte 14 # DW_FORM_strp
274 .byte 58 # DW_AT_decl_file
275 .byte 11 # DW_FORM_data1
276 .byte 59 # DW_AT_decl_line
277 .byte 11 # DW_FORM_data1
278 .byte 60 # DW_AT_declaration
279 .byte 25 # DW_FORM_flag_present
280 .byte 63 # DW_AT_external
281 .byte 25 # DW_FORM_flag_present
284 .byte 12 # Abbreviation Code
285 .byte 15 # DW_TAG_pointer_type
286 .byte 0 # DW_CHILDREN_no
287 .byte 73 # DW_AT_type
288 .byte 19 # DW_FORM_ref4
292 .section .debug_info,"",@progbits
294 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
296 .short 4 # DWARF version number
297 .long .debug_abbrev # Offset Into Abbrev. Section
298 .byte 8 # Address Size (in bytes)
299 .byte 1 # Abbrev [1] 0xb:0xcf DW_TAG_compile_unit
300 .long .Linfo_string0 # DW_AT_producer
301 .short 33 # DW_AT_language
302 .long .Linfo_string1 # DW_AT_name
303 .long .Lline_table_start0 # DW_AT_stmt_list
304 .long .Linfo_string2 # DW_AT_comp_dir
305 .quad .Lfunc_begin0 # DW_AT_low_pc
306 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
307 .byte 2 # Abbrev [2] 0x2a:0x1c DW_TAG_subprogram
308 .long .Linfo_string3 # DW_AT_linkage_name
309 .long .Linfo_string4 # DW_AT_name
310 .byte 1 # DW_AT_decl_file
311 .byte 1 # DW_AT_decl_line
312 .long 70 # DW_AT_type
313 .byte 1 # DW_AT_inline
314 .byte 3 # Abbrev [3] 0x3a:0xb DW_TAG_formal_parameter
315 .long .Linfo_string6 # DW_AT_name
316 .byte 1 # DW_AT_decl_file
317 .byte 1 # DW_AT_decl_line
318 .long 70 # DW_AT_type
319 .byte 0 # End Of Children Mark
320 .byte 4 # Abbrev [4] 0x46:0x7 DW_TAG_base_type
321 .long .Linfo_string5 # DW_AT_name
322 .byte 5 # DW_AT_encoding
323 .byte 4 # DW_AT_byte_size
324 .byte 5 # Abbrev [5] 0x4d:0x70 DW_TAG_subprogram
325 .quad .Lfunc_begin0 # DW_AT_low_pc
326 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
327 .byte 1 # DW_AT_frame_base
329 # DW_AT_GNU_all_call_sites
330 .long .Linfo_string9 # DW_AT_name
331 .byte 1 # DW_AT_decl_file
332 .byte 5 # DW_AT_decl_line
333 .long 70 # DW_AT_type
335 .byte 6 # Abbrev [6] 0x66:0xf DW_TAG_formal_parameter
336 .long .Ldebug_loc0 # DW_AT_location
337 .long .Linfo_string10 # DW_AT_name
338 .byte 1 # DW_AT_decl_file
339 .byte 5 # DW_AT_decl_line
340 .long 70 # DW_AT_type
341 .byte 6 # Abbrev [6] 0x75:0xf DW_TAG_formal_parameter
342 .long .Ldebug_loc1 # DW_AT_location
343 .long .Linfo_string11 # DW_AT_name
344 .byte 1 # DW_AT_decl_file
345 .byte 5 # DW_AT_decl_line
346 .long 200 # DW_AT_type
347 .byte 7 # Abbrev [7] 0x84:0xf DW_TAG_variable
348 .long .Ldebug_loc2 # DW_AT_location
349 .long .Linfo_string13 # DW_AT_name
350 .byte 1 # DW_AT_decl_file
351 .byte 8 # DW_AT_decl_line
352 .long 70 # DW_AT_type
353 .byte 8 # Abbrev [8] 0x93:0x1c DW_TAG_inlined_subroutine
354 .long 42 # DW_AT_abstract_origin
355 .quad .Ltmp2 # DW_AT_low_pc
356 .long .Ltmp3-.Ltmp2 # DW_AT_high_pc
357 .byte 1 # DW_AT_call_file
358 .byte 9 # DW_AT_call_line
359 .byte 32 # DW_AT_call_column
360 .byte 9 # Abbrev [9] 0xa7:0x7 DW_TAG_formal_parameter
361 .byte 1 # DW_AT_location
363 .long 58 # DW_AT_abstract_origin
364 .byte 0 # End Of Children Mark
365 .byte 10 # Abbrev [10] 0xaf:0xd DW_TAG_GNU_call_site
366 .long 189 # DW_AT_abstract_origin
367 .quad .Ltmp2 # DW_AT_low_pc
368 .byte 0 # End Of Children Mark
369 .byte 11 # Abbrev [11] 0xbd:0xb DW_TAG_subprogram
370 .long .Linfo_string7 # DW_AT_linkage_name
371 .long .Linfo_string8 # DW_AT_name
372 .byte 1 # DW_AT_decl_file
373 .byte 4 # DW_AT_decl_line
376 .byte 12 # Abbrev [12] 0xc8:0x5 DW_TAG_pointer_type
377 .long 205 # DW_AT_type
378 .byte 12 # Abbrev [12] 0xcd:0x5 DW_TAG_pointer_type
379 .long 210 # DW_AT_type
380 .byte 4 # Abbrev [4] 0xd2:0x7 DW_TAG_base_type
381 .long .Linfo_string12 # DW_AT_name
382 .byte 6 # DW_AT_encoding
383 .byte 1 # DW_AT_byte_size
384 .byte 0 # End Of Children Mark
386 .section .debug_str,"MS",@progbits,1
388 .asciz "clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)" # string offset=0
390 .asciz "main.cpp" # string offset=105
392 .asciz "." # string offset=114
394 .asciz "_ZL6helperi" # string offset=152
396 .asciz "helper" # string offset=164
398 .asciz "int" # string offset=171
400 .asciz "i" # string offset=175
402 .asciz "_Z13may_not_existv" # string offset=177
404 .asciz "may_not_exist" # string offset=196
406 .asciz "main" # string offset=210
408 .asciz "argc" # string offset=215
410 .asciz "argv" # string offset=220
412 .asciz "char" # string offset=225
414 .asciz "j" # string offset=230
415 .weak _Z13may_not_existv
416 .ident "clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)"
417 .section ".note.GNU-stack","",@progbits
419 .addrsig_sym _Z13may_not_existv
420 .section .debug_line,"",@progbits