1 # __attribute__((always_inline))
2 # int doStuff(int val) {
7 # __attribute__((always_inline))
8 # int doStuffSame(int val) {
15 # int main(int argc, const char** argv) {
16 # return doStuff(argc) + doStuffSame(argc);
18 # Assembly manually modified to set DW_AT_low_pc to 0 for DW_TAG_inlined_subroutine(s)
21 .section .text._Z7doStuffi,"ax",@progbits
22 .globl _Z7doStuffi # -- Begin function _Z7doStuffi
24 .type _Z7doStuffi,@function
25 _Z7doStuffi
: # @_Z7doStuffi
27 .file 1 "." "main.cpp"
28 .loc 1 2 0 # main.cpp:2:0
32 .cfi_def_cfa_offset 16
35 .cfi_def_cfa_register %rbp
38 .loc 1 3 7 prologue_end # main.cpp:3:7
41 .loc 1 3 7 is_stmt 0 # main.cpp:3:7
45 .loc 1 4 5 is_stmt 1 # main.cpp:4:5
51 .loc 1 5 10 # main.cpp:5:10
53 .loc 1 5 3 epilogue_begin is_stmt 0 # main.cpp:5:3
59 .size _Z7doStuffi, .Lfunc_end0-_Z7doStuffi
62 .section .text._Z11doStuffSamei,"ax",@progbits
63 .globl _Z11doStuffSamei # -- Begin function _Z11doStuffSamei
65 .type _Z11doStuffSamei,@function
66 _Z11doStuffSamei
: # @_Z11doStuffSamei
68 .loc 1 8 0 is_stmt 1 # main.cpp:8:0
72 .cfi_def_cfa_offset 16
75 .cfi_def_cfa_register %rbp
78 .loc 1 9 11 prologue_end # main.cpp:9:11
81 .loc 1 9 11 is_stmt 0 # main.cpp:9:11
85 .loc 1 10 13 is_stmt 1 # main.cpp:10:13
91 .loc 1 11 16 # main.cpp:11:16
93 .loc 1 11 9 epilogue_begin is_stmt 0 # main.cpp:11:9
99 .size _Z11doStuffSamei, .Lfunc_end1-_Z11doStuffSamei
102 .section .text.main,"ax",@progbits
103 .globl main # -- Begin function main
108 .loc 1 15 0 is_stmt 1 # main.cpp:15:0
112 .cfi_def_cfa_offset 16
113 .cfi_offset %rbp, -16
115 .cfi_def_cfa_register %rbp
120 .loc 1 16 21 prologue_end # main.cpp:16:21
124 .loc 1 3 7 # main.cpp:3:7
127 .loc 1 3 7 is_stmt 0 # main.cpp:3:7
129 # %bb.1: # %if.then.i
131 .loc 1 4 5 is_stmt 1 # main.cpp:4:5
136 .LBB2_2: # %_Z7doStuffi.exit
137 .loc 1 5 10 # main.cpp:5:10
139 movl
%eax
, -28(%rbp
) # 4-byte Spill
141 .loc 1 16 41 # main.cpp:16:41
145 .loc 1 9 11 # main.cpp:9:11
148 .loc 1 9 11 is_stmt 0 # main.cpp:9:11
150 # %bb.3: # %if.then.i4
152 .loc 1 10 13 is_stmt 1 # main.cpp:10:13
157 .LBB2_4: # %_Z11doStuffSamei.exit
158 .loc 1 0 13 is_stmt 0 # main.cpp:0:13
159 movl
-28(%rbp
), %eax
# 4-byte Reload
160 .loc 1 16 27 is_stmt 1 # main.cpp:16:27
162 .loc 1 16 5 epilogue_begin is_stmt 0 # main.cpp:16:5
168 .size main, .Lfunc_end2-main
171 .section .debug_abbrev,"",@progbits
172 .byte 1 # Abbreviation Code
173 .byte 17 # DW_TAG_compile_unit
174 .byte 0 # DW_CHILDREN_no
175 .byte 16 # DW_AT_stmt_list
176 .byte 23 # DW_FORM_sec_offset
177 .byte 27 # DW_AT_comp_dir
178 .byte 14 # DW_FORM_strp
179 .ascii "\264B" # DW_AT_GNU_pubnames
180 .byte 25 # DW_FORM_flag_present
181 .ascii "\260B" # DW_AT_GNU_dwo_name
182 .byte 14 # DW_FORM_strp
183 .ascii "\261B" # DW_AT_GNU_dwo_id
184 .byte 7 # DW_FORM_data8
185 .byte 17 # DW_AT_low_pc
186 .byte 1 # DW_FORM_addr
187 .byte 85 # DW_AT_ranges
188 .byte 23 # DW_FORM_sec_offset
189 .ascii "\263B" # DW_AT_GNU_addr_base
190 .byte 23 # DW_FORM_sec_offset
194 .section .debug_info,"",@progbits
196 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
198 .short 4 # DWARF version number
199 .long .debug_abbrev # Offset Into Abbrev. Section
200 .byte 8 # Address Size (in bytes)
201 .byte 1 # Abbrev [1] 0xb:0x25 DW_TAG_compile_unit
202 .long .Lline_table_start0 # DW_AT_stmt_list
203 .long .Lskel_string0 # DW_AT_comp_dir
205 .long .Lskel_string1 # DW_AT_GNU_dwo_name
206 .quad 1388808602086005033 # DW_AT_GNU_dwo_id
207 .quad 0 # DW_AT_low_pc
208 .long .Ldebug_ranges0 # DW_AT_ranges
209 .long .Laddr_table_base0 # DW_AT_GNU_addr_base
211 .section .debug_ranges,"",@progbits
219 .quad 0 # manually modified
220 .quad 0 # manually modified
221 .section .debug_str,"MS",@progbits,1
223 .asciz "." # string offset=0
225 .asciz "main.dwo" # string offset=38
226 .section .debug_str.dwo,"eMS",@progbits,1
228 .asciz "_Z7doStuffi" # string offset=0
230 .asciz "doStuff" # string offset=12
232 .asciz "int" # string offset=20
234 .asciz "val" # string offset=24
236 .asciz "_Z11doStuffSamei" # string offset=28
238 .asciz "doStuffSame" # string offset=45
240 .asciz "main" # string offset=57
242 .asciz "argc" # string offset=62
244 .asciz "argv" # string offset=67
246 .asciz "char" # string offset=72
248 .asciz "clang version 18.0.0 (git@github.com:llvm/llvm-project.git 63dbe7e808d07bdf25bad85301980bc323b0cd64)" # string offset=77
250 .asciz "main.cpp" # string offset=178
252 .asciz "main.dwo" # string offset=187
253 .section .debug_str_offsets.dwo,"e",@progbits
267 .section .debug_info.dwo,"e",@progbits
268 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit
269 .Ldebug_info_dwo_start0:
270 .short 4 # DWARF version number
271 .long 0 # Offset Into Abbrev. Section
272 .byte 8 # Address Size (in bytes)
273 .byte 1 # Abbrev [1] 0xb:0xc8 DW_TAG_compile_unit
274 .byte 10 # DW_AT_producer
275 .short 33 # DW_AT_language
276 .byte 11 # DW_AT_name
277 .byte 12 # DW_AT_GNU_dwo_name
278 .quad 1388808602086005033 # DW_AT_GNU_dwo_id
279 .byte 2 # Abbrev [2] 0x19:0x15 DW_TAG_subprogram
280 .byte 0 # DW_AT_low_pc
281 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
282 .byte 1 # DW_AT_frame_base
284 .long 67 # DW_AT_abstract_origin
285 .byte 3 # Abbrev [3] 0x25:0x8 DW_TAG_formal_parameter
286 .byte 2 # DW_AT_location
289 .long 77 # DW_AT_abstract_origin
290 .byte 0 # End Of Children Mark
291 .byte 2 # Abbrev [2] 0x2e:0x15 DW_TAG_subprogram
292 .byte 1 # DW_AT_low_pc
293 .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
294 .byte 1 # DW_AT_frame_base
296 .long 90 # DW_AT_abstract_origin
297 .byte 3 # Abbrev [3] 0x3a:0x8 DW_TAG_formal_parameter
298 .byte 2 # DW_AT_location
301 .long 100 # DW_AT_abstract_origin
302 .byte 0 # End Of Children Mark
303 .byte 4 # Abbrev [4] 0x43:0x13 DW_TAG_subprogram
304 .byte 0 # DW_AT_linkage_name
306 .byte 1 # DW_AT_decl_file
307 .byte 2 # DW_AT_decl_line
308 .long 86 # DW_AT_type
310 .byte 1 # DW_AT_inline
311 .byte 5 # Abbrev [5] 0x4d:0x8 DW_TAG_formal_parameter
313 .byte 1 # DW_AT_decl_file
314 .byte 2 # DW_AT_decl_line
315 .long 86 # DW_AT_type
316 .byte 0 # End Of Children Mark
317 .byte 6 # Abbrev [6] 0x56:0x4 DW_TAG_base_type
319 .byte 5 # DW_AT_encoding
320 .byte 4 # DW_AT_byte_size
321 .byte 4 # Abbrev [4] 0x5a:0x13 DW_TAG_subprogram
322 .byte 4 # DW_AT_linkage_name
324 .byte 1 # DW_AT_decl_file
325 .byte 8 # DW_AT_decl_line
326 .long 86 # DW_AT_type
328 .byte 1 # DW_AT_inline
329 .byte 5 # Abbrev [5] 0x64:0x8 DW_TAG_formal_parameter
331 .byte 1 # DW_AT_decl_file
332 .byte 8 # DW_AT_decl_line
333 .long 86 # DW_AT_type
334 .byte 0 # End Of Children Mark
335 .byte 7 # Abbrev [7] 0x6d:0x52 DW_TAG_subprogram
336 .byte 2 # DW_AT_low_pc
337 .long .Lfunc_end2-.Lfunc_begin2 # DW_AT_high_pc
338 .byte 1 # DW_AT_frame_base
341 .byte 1 # DW_AT_decl_file
342 .byte 15 # DW_AT_decl_line
343 .long 86 # DW_AT_type
345 .byte 8 # Abbrev [8] 0x7c:0xb DW_TAG_formal_parameter
346 .byte 2 # DW_AT_location
350 .byte 1 # DW_AT_decl_file
351 .byte 15 # DW_AT_decl_line
352 .long 86 # DW_AT_type
353 .byte 8 # Abbrev [8] 0x87:0xb DW_TAG_formal_parameter
354 .byte 2 # DW_AT_location
358 .byte 1 # DW_AT_decl_file
359 .byte 15 # DW_AT_decl_line
360 .long 191 # DW_AT_type
361 .byte 9 # Abbrev [9] 0x92:0x16 DW_TAG_inlined_subroutine
362 .long 67 # DW_AT_abstract_origin
363 .byte 3 # DW_AT_low_pc
364 .long .Ltmp15-.Ltmp11 # DW_AT_high_pc
365 .byte 1 # DW_AT_call_file
366 .byte 16 # DW_AT_call_line
367 .byte 13 # DW_AT_call_column
368 .byte 3 # Abbrev [3] 0x9f:0x8 DW_TAG_formal_parameter
369 .byte 2 # DW_AT_location
372 .long 77 # DW_AT_abstract_origin
373 .byte 0 # End Of Children Mark
374 .byte 9 # Abbrev [9] 0xa8:0x16 DW_TAG_inlined_subroutine
375 .long 90 # DW_AT_abstract_origin
376 .byte 4 # DW_AT_low_pc
377 .long .Ltmp19-.Ltmp16 # DW_AT_high_pc
378 .byte 1 # DW_AT_call_file
379 .byte 16 # DW_AT_call_line
380 .byte 29 # DW_AT_call_column
381 .byte 3 # Abbrev [3] 0xb5:0x8 DW_TAG_formal_parameter
382 .byte 2 # DW_AT_location
385 .long 100 # DW_AT_abstract_origin
386 .byte 0 # End Of Children Mark
387 .byte 0 # End Of Children Mark
388 .byte 10 # Abbrev [10] 0xbf:0x5 DW_TAG_pointer_type
389 .long 196 # DW_AT_type
390 .byte 10 # Abbrev [10] 0xc4:0x5 DW_TAG_pointer_type
391 .long 201 # DW_AT_type
392 .byte 11 # Abbrev [11] 0xc9:0x5 DW_TAG_const_type
393 .long 206 # DW_AT_type
394 .byte 6 # Abbrev [6] 0xce:0x4 DW_TAG_base_type
396 .byte 6 # DW_AT_encoding
397 .byte 1 # DW_AT_byte_size
398 .byte 0 # End Of Children Mark
399 .Ldebug_info_dwo_end0:
400 .section .debug_abbrev.dwo,"e",@progbits
401 .byte 1 # Abbreviation Code
402 .byte 17 # DW_TAG_compile_unit
403 .byte 1 # DW_CHILDREN_yes
404 .byte 37 # DW_AT_producer
405 .ascii "\202>" # DW_FORM_GNU_str_index
406 .byte 19 # DW_AT_language
407 .byte 5 # DW_FORM_data2
409 .ascii "\202>" # DW_FORM_GNU_str_index
410 .ascii "\260B" # DW_AT_GNU_dwo_name
411 .ascii "\202>" # DW_FORM_GNU_str_index
412 .ascii "\261B" # DW_AT_GNU_dwo_id
413 .byte 7 # DW_FORM_data8
416 .byte 2 # Abbreviation Code
417 .byte 46 # DW_TAG_subprogram
418 .byte 1 # DW_CHILDREN_yes
419 .byte 17 # DW_AT_low_pc
420 .ascii "\201>" # DW_FORM_GNU_addr_index
421 .byte 18 # DW_AT_high_pc
422 .byte 6 # DW_FORM_data4
423 .byte 64 # DW_AT_frame_base
424 .byte 24 # DW_FORM_exprloc
425 .byte 49 # DW_AT_abstract_origin
426 .byte 19 # DW_FORM_ref4
429 .byte 3 # Abbreviation Code
430 .byte 5 # DW_TAG_formal_parameter
431 .byte 0 # DW_CHILDREN_no
432 .byte 2 # DW_AT_location
433 .byte 24 # DW_FORM_exprloc
434 .byte 49 # DW_AT_abstract_origin
435 .byte 19 # DW_FORM_ref4
438 .byte 4 # Abbreviation Code
439 .byte 46 # DW_TAG_subprogram
440 .byte 1 # DW_CHILDREN_yes
441 .byte 110 # DW_AT_linkage_name
442 .ascii "\202>" # DW_FORM_GNU_str_index
444 .ascii "\202>" # DW_FORM_GNU_str_index
445 .byte 58 # DW_AT_decl_file
446 .byte 11 # DW_FORM_data1
447 .byte 59 # DW_AT_decl_line
448 .byte 11 # DW_FORM_data1
449 .byte 73 # DW_AT_type
450 .byte 19 # DW_FORM_ref4
451 .byte 63 # DW_AT_external
452 .byte 25 # DW_FORM_flag_present
453 .byte 32 # DW_AT_inline
454 .byte 11 # DW_FORM_data1
457 .byte 5 # Abbreviation Code
458 .byte 5 # DW_TAG_formal_parameter
459 .byte 0 # DW_CHILDREN_no
461 .ascii "\202>" # DW_FORM_GNU_str_index
462 .byte 58 # DW_AT_decl_file
463 .byte 11 # DW_FORM_data1
464 .byte 59 # DW_AT_decl_line
465 .byte 11 # DW_FORM_data1
466 .byte 73 # DW_AT_type
467 .byte 19 # DW_FORM_ref4
470 .byte 6 # Abbreviation Code
471 .byte 36 # DW_TAG_base_type
472 .byte 0 # DW_CHILDREN_no
474 .ascii "\202>" # DW_FORM_GNU_str_index
475 .byte 62 # DW_AT_encoding
476 .byte 11 # DW_FORM_data1
477 .byte 11 # DW_AT_byte_size
478 .byte 11 # DW_FORM_data1
481 .byte 7 # Abbreviation Code
482 .byte 46 # DW_TAG_subprogram
483 .byte 1 # DW_CHILDREN_yes
484 .byte 17 # DW_AT_low_pc
485 .ascii "\201>" # DW_FORM_GNU_addr_index
486 .byte 18 # DW_AT_high_pc
487 .byte 6 # DW_FORM_data4
488 .byte 64 # DW_AT_frame_base
489 .byte 24 # DW_FORM_exprloc
491 .ascii "\202>" # DW_FORM_GNU_str_index
492 .byte 58 # DW_AT_decl_file
493 .byte 11 # DW_FORM_data1
494 .byte 59 # DW_AT_decl_line
495 .byte 11 # DW_FORM_data1
496 .byte 73 # DW_AT_type
497 .byte 19 # DW_FORM_ref4
498 .byte 63 # DW_AT_external
499 .byte 25 # DW_FORM_flag_present
502 .byte 8 # Abbreviation Code
503 .byte 5 # DW_TAG_formal_parameter
504 .byte 0 # DW_CHILDREN_no
505 .byte 2 # DW_AT_location
506 .byte 24 # DW_FORM_exprloc
508 .ascii "\202>" # DW_FORM_GNU_str_index
509 .byte 58 # DW_AT_decl_file
510 .byte 11 # DW_FORM_data1
511 .byte 59 # DW_AT_decl_line
512 .byte 11 # DW_FORM_data1
513 .byte 73 # DW_AT_type
514 .byte 19 # DW_FORM_ref4
517 .byte 9 # Abbreviation Code
518 .byte 29 # DW_TAG_inlined_subroutine
519 .byte 1 # DW_CHILDREN_yes
520 .byte 49 # DW_AT_abstract_origin
521 .byte 19 # DW_FORM_ref4
522 .byte 17 # DW_AT_low_pc
523 .ascii "\201>" # DW_FORM_GNU_addr_index
524 .byte 18 # DW_AT_high_pc
525 .byte 6 # DW_FORM_data4
526 .byte 88 # DW_AT_call_file
527 .byte 11 # DW_FORM_data1
528 .byte 89 # DW_AT_call_line
529 .byte 11 # DW_FORM_data1
530 .byte 87 # DW_AT_call_column
531 .byte 11 # DW_FORM_data1
534 .byte 10 # Abbreviation Code
535 .byte 15 # DW_TAG_pointer_type
536 .byte 0 # DW_CHILDREN_no
537 .byte 73 # DW_AT_type
538 .byte 19 # DW_FORM_ref4
541 .byte 11 # Abbreviation Code
542 .byte 38 # DW_TAG_const_type
543 .byte 0 # DW_CHILDREN_no
544 .byte 73 # DW_AT_type
545 .byte 19 # DW_FORM_ref4
549 .section .debug_addr,"",@progbits
556 .section .debug_gnu_pubnames,"",@progbits
557 .long .LpubNames_end0-.LpubNames_start0 # Length of Public Names Info
559 .short 2 # DWARF Version
560 .long .Lcu_begin0 # Offset of Compilation Unit Info
561 .long 48 # Compilation Unit Length
562 .long 67 # DIE offset
563 .byte 48 # Attributes: FUNCTION, EXTERNAL
564 .asciz "doStuff" # External Name
565 .long 90 # DIE offset
566 .byte 48 # Attributes: FUNCTION, EXTERNAL
567 .asciz "doStuffSame" # External Name
568 .long 109 # DIE offset
569 .byte 48 # Attributes: FUNCTION, EXTERNAL
570 .asciz "main" # External Name
573 .section .debug_gnu_pubtypes,"",@progbits
574 .long .LpubTypes_end0-.LpubTypes_start0 # Length of Public Types Info
576 .short 2 # DWARF Version
577 .long .Lcu_begin0 # Offset of Compilation Unit Info
578 .long 48 # Compilation Unit Length
579 .long 86 # DIE offset
580 .byte 144 # Attributes: TYPE, STATIC
581 .asciz "int" # External Name
582 .long 206 # DIE offset
583 .byte 144 # Attributes: TYPE, STATIC
584 .asciz "char" # External Name
587 .ident "clang version 18.0.0 (git@github.com:llvm/llvm-project.git 63dbe7e808d07bdf25bad85301980bc323b0cd64)"
588 .section ".note.GNU-stack","",@progbits
590 .section .debug_line,"",@progbits