brintos

brintos / llvm-project-archived public Read only

0
0
Text · 14.4 KiB · 0745b2f Raw
336 lines · plain
1## clang++ -fbasic-block-sections=all -ffunction-sections -g2 -gdwarf-42## int doStuffOther(int val) {3##   if (val)4##     ++val;5##   return val;6## }7##8## int mainOther(int argc, const char** argv) {9##     return  doStuffOther(argc);10## }11		.text12	.file	"mainOther.cpp"13	.section	.text._Z12doStuffOtheri,"ax",@progbits14	.globl	_Z12doStuffOtheri               # -- Begin function _Z12doStuffOtheri15	.p2align	4, 0x9016	.type	_Z12doStuffOtheri,@function17_Z12doStuffOtheri:                      # @_Z12doStuffOtheri18.Lfunc_begin0:19	.file	1 "." "mainOther.cpp"20	.loc	1 1 0                           # mainOther.cpp:1:021	.cfi_startproc22# %bb.0:                                # %entry23	pushq	%rbp24	.cfi_def_cfa_offset 1625	.cfi_offset %rbp, -1626	movq	%rsp, %rbp27	.cfi_def_cfa_register %rbp28	movl	%edi, -4(%rbp)29.Ltmp0:30	.loc	1 2 8 prologue_end              # mainOther.cpp:2:831	cmpl	$0, -4(%rbp)32.Ltmp1:33	.loc	1 2 8 is_stmt 0                 # mainOther.cpp:2:834	je	_Z12doStuffOtheri.__part.235	jmp	_Z12doStuffOtheri.__part.136.LBB_END0_0:37	.cfi_endproc38	.section	.text._Z12doStuffOtheri,"ax",@progbits,unique,139_Z12doStuffOtheri.__part.1:             # %if.then40	.cfi_startproc41	.cfi_def_cfa %rbp, 1642	.cfi_offset %rbp, -1643	.loc	1 3 6 is_stmt 1                 # mainOther.cpp:3:644	movl	-4(%rbp), %eax45	addl	$1, %eax46	movl	%eax, -4(%rbp)47	jmp	_Z12doStuffOtheri.__part.248.LBB_END0_1:49	.size	_Z12doStuffOtheri.__part.1, .LBB_END0_1-_Z12doStuffOtheri.__part.150	.cfi_endproc51	.section	.text._Z12doStuffOtheri,"ax",@progbits,unique,252_Z12doStuffOtheri.__part.2:             # %if.end53	.cfi_startproc54	.cfi_def_cfa %rbp, 1655	.cfi_offset %rbp, -1656	.loc	1 4 11                          # mainOther.cpp:4:1157	movl	-4(%rbp), %eax58	.loc	1 4 4 epilogue_begin is_stmt 0  # mainOther.cpp:4:459	popq	%rbp60	.cfi_def_cfa %rsp, 861	retq62.LBB_END0_2:63	.size	_Z12doStuffOtheri.__part.2, .LBB_END0_2-_Z12doStuffOtheri.__part.264	.cfi_endproc65	.section	.text._Z12doStuffOtheri,"ax",@progbits66.Lfunc_end0:67	.size	_Z12doStuffOtheri, .Lfunc_end0-_Z12doStuffOtheri68                                        # -- End function69	.section	.text._Z9mainOtheriPPKc,"ax",@progbits70	.globl	_Z9mainOtheriPPKc               # -- Begin function _Z9mainOtheriPPKc71	.p2align	4, 0x9072	.type	_Z9mainOtheriPPKc,@function73_Z9mainOtheriPPKc:                      # @_Z9mainOtheriPPKc74.Lfunc_begin1:75	.loc	1 7 0 is_stmt 1                 # mainOther.cpp:7:076	.cfi_startproc77# %bb.0:                                # %entry78	pushq	%rbp79	.cfi_def_cfa_offset 1680	.cfi_offset %rbp, -1681	movq	%rsp, %rbp82	.cfi_def_cfa_register %rbp83	subq	$16, %rsp84	movl	%edi, -4(%rbp)85	movq	%rsi, -16(%rbp)86.Ltmp2:87	.loc	1 8 27 prologue_end             # mainOther.cpp:8:2788	movl	-4(%rbp), %edi89	.loc	1 8 14 is_stmt 0                # mainOther.cpp:8:1490	callq	_Z12doStuffOtheri91	.loc	1 8 6 epilogue_begin            # mainOther.cpp:8:692	addq	$16, %rsp93	popq	%rbp94	.cfi_def_cfa %rsp, 895	retq96.LBB_END1_0:97	.cfi_endproc98.Lfunc_end1:99	.size	_Z9mainOtheriPPKc, .Lfunc_end1-_Z9mainOtheriPPKc100                                        # -- End function101	.section	.debug_abbrev,"",@progbits102	.byte	1                               # Abbreviation Code103	.byte	17                              # DW_TAG_compile_unit104	.byte	1                               # DW_CHILDREN_yes105	.byte	37                              # DW_AT_producer106	.byte	14                              # DW_FORM_strp107	.byte	19                              # DW_AT_language108	.byte	5                               # DW_FORM_data2109	.byte	3                               # DW_AT_name110	.byte	14                              # DW_FORM_strp111	.byte	16                              # DW_AT_stmt_list112	.byte	23                              # DW_FORM_sec_offset113	.byte	27                              # DW_AT_comp_dir114	.byte	14                              # DW_FORM_strp115	.byte	17                              # DW_AT_low_pc116	.byte	1                               # DW_FORM_addr117	.byte	85                              # DW_AT_ranges118	.byte	23                              # DW_FORM_sec_offset119	.byte	0                               # EOM(1)120	.byte	0                               # EOM(2)121	.byte	2                               # Abbreviation Code122	.byte	46                              # DW_TAG_subprogram123	.byte	1                               # DW_CHILDREN_yes124	.byte	85                              # DW_AT_ranges125	.byte	23                              # DW_FORM_sec_offset126	.byte	64                              # DW_AT_frame_base127	.byte	24                              # DW_FORM_exprloc128	.byte	110                             # DW_AT_linkage_name129	.byte	14                              # DW_FORM_strp130	.byte	3                               # DW_AT_name131	.byte	14                              # DW_FORM_strp132	.byte	58                              # DW_AT_decl_file133	.byte	11                              # DW_FORM_data1134	.byte	59                              # DW_AT_decl_line135	.byte	11                              # DW_FORM_data1136	.byte	73                              # DW_AT_type137	.byte	19                              # DW_FORM_ref4138	.byte	63                              # DW_AT_external139	.byte	25                              # DW_FORM_flag_present140	.byte	0                               # EOM(1)141	.byte	0                               # EOM(2)142	.byte	3                               # Abbreviation Code143	.byte	5                               # DW_TAG_formal_parameter144	.byte	0                               # DW_CHILDREN_no145	.byte	2                               # DW_AT_location146	.byte	24                              # DW_FORM_exprloc147	.byte	3                               # DW_AT_name148	.byte	14                              # DW_FORM_strp149	.byte	58                              # DW_AT_decl_file150	.byte	11                              # DW_FORM_data1151	.byte	59                              # DW_AT_decl_line152	.byte	11                              # DW_FORM_data1153	.byte	73                              # DW_AT_type154	.byte	19                              # DW_FORM_ref4155	.byte	0                               # EOM(1)156	.byte	0                               # EOM(2)157	.byte	4                               # Abbreviation Code158	.byte	46                              # DW_TAG_subprogram159	.byte	1                               # DW_CHILDREN_yes160	.byte	17                              # DW_AT_low_pc161	.byte	1                               # DW_FORM_addr162	.byte	18                              # DW_AT_high_pc163	.byte	6                               # DW_FORM_data4164	.byte	64                              # DW_AT_frame_base165	.byte	24                              # DW_FORM_exprloc166	.byte	110                             # DW_AT_linkage_name167	.byte	14                              # DW_FORM_strp168	.byte	3                               # DW_AT_name169	.byte	14                              # DW_FORM_strp170	.byte	58                              # DW_AT_decl_file171	.byte	11                              # DW_FORM_data1172	.byte	59                              # DW_AT_decl_line173	.byte	11                              # DW_FORM_data1174	.byte	73                              # DW_AT_type175	.byte	19                              # DW_FORM_ref4176	.byte	63                              # DW_AT_external177	.byte	25                              # DW_FORM_flag_present178	.byte	0                               # EOM(1)179	.byte	0                               # EOM(2)180	.byte	5                               # Abbreviation Code181	.byte	36                              # DW_TAG_base_type182	.byte	0                               # DW_CHILDREN_no183	.byte	3                               # DW_AT_name184	.byte	14                              # DW_FORM_strp185	.byte	62                              # DW_AT_encoding186	.byte	11                              # DW_FORM_data1187	.byte	11                              # DW_AT_byte_size188	.byte	11                              # DW_FORM_data1189	.byte	0                               # EOM(1)190	.byte	0                               # EOM(2)191	.byte	6                               # Abbreviation Code192	.byte	15                              # DW_TAG_pointer_type193	.byte	0                               # DW_CHILDREN_no194	.byte	73                              # DW_AT_type195	.byte	19                              # DW_FORM_ref4196	.byte	0                               # EOM(1)197	.byte	0                               # EOM(2)198	.byte	7                               # Abbreviation Code199	.byte	38                              # DW_TAG_const_type200	.byte	0                               # DW_CHILDREN_no201	.byte	73                              # DW_AT_type202	.byte	19                              # DW_FORM_ref4203	.byte	0                               # EOM(1)204	.byte	0                               # EOM(2)205	.byte	0                               # EOM(3)206	.section	.debug_info,"",@progbits207.Lcu_begin0:208	.long	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit209.Ldebug_info_start0:210	.short	4                               # DWARF version number211	.long	.debug_abbrev                   # Offset Into Abbrev. Section212	.byte	8                               # Address Size (in bytes)213	.byte	1                               # Abbrev [1] 0xb:0x9b DW_TAG_compile_unit214	.long	.Linfo_string0                  # DW_AT_producer215	.short	33                              # DW_AT_language216	.long	.Linfo_string1                  # DW_AT_name217	.long	.Lline_table_start0             # DW_AT_stmt_list218	.long	.Linfo_string2                  # DW_AT_comp_dir219	.quad	0                               # DW_AT_low_pc220	.long	.Ldebug_ranges1                 # DW_AT_ranges221	.byte	2                               # Abbrev [2] 0x2a:0x24 DW_TAG_subprogram222	.long	.Ldebug_ranges0                 # DW_AT_ranges223	.byte	1                               # DW_AT_frame_base224	.byte	86225	.long	.Linfo_string3                  # DW_AT_linkage_name226	.long	.Linfo_string4                  # DW_AT_name227	.byte	1                               # DW_AT_decl_file228	.byte	1                               # DW_AT_decl_line229	.long	136                             # DW_AT_type230                                        # DW_AT_external231	.byte	3                               # Abbrev [3] 0x3f:0xe DW_TAG_formal_parameter232	.byte	2                               # DW_AT_location233	.byte	145234	.byte	124235	.long	.Linfo_string8                  # DW_AT_name236	.byte	1                               # DW_AT_decl_file237	.byte	1                               # DW_AT_decl_line238	.long	136                             # DW_AT_type239	.byte	0                               # End Of Children Mark240	.byte	4                               # Abbrev [4] 0x4e:0x3a DW_TAG_subprogram241	.quad	.Lfunc_begin1                   # DW_AT_low_pc242	.long	.Lfunc_end1-.Lfunc_begin1       # DW_AT_high_pc243	.byte	1                               # DW_AT_frame_base244	.byte	86245	.long	.Linfo_string6                  # DW_AT_linkage_name246	.long	.Linfo_string7                  # DW_AT_name247	.byte	1                               # DW_AT_decl_file248	.byte	7                               # DW_AT_decl_line249	.long	136                             # DW_AT_type250                                        # DW_AT_external251	.byte	3                               # Abbrev [3] 0x6b:0xe DW_TAG_formal_parameter252	.byte	2                               # DW_AT_location253	.byte	145254	.byte	124255	.long	.Linfo_string9                  # DW_AT_name256	.byte	1                               # DW_AT_decl_file257	.byte	7                               # DW_AT_decl_line258	.long	136                             # DW_AT_type259	.byte	3                               # Abbrev [3] 0x79:0xe DW_TAG_formal_parameter260	.byte	2                               # DW_AT_location261	.byte	145262	.byte	112263	.long	.Linfo_string10                 # DW_AT_name264	.byte	1                               # DW_AT_decl_file265	.byte	7                               # DW_AT_decl_line266	.long	143                             # DW_AT_type267	.byte	0                               # End Of Children Mark268	.byte	5                               # Abbrev [5] 0x88:0x7 DW_TAG_base_type269	.long	.Linfo_string5                  # DW_AT_name270	.byte	5                               # DW_AT_encoding271	.byte	4                               # DW_AT_byte_size272	.byte	6                               # Abbrev [6] 0x8f:0x5 DW_TAG_pointer_type273	.long	148                             # DW_AT_type274	.byte	6                               # Abbrev [6] 0x94:0x5 DW_TAG_pointer_type275	.long	153                             # DW_AT_type276	.byte	7                               # Abbrev [7] 0x99:0x5 DW_TAG_const_type277	.long	158                             # DW_AT_type278	.byte	5                               # Abbrev [5] 0x9e:0x7 DW_TAG_base_type279	.long	.Linfo_string11                 # DW_AT_name280	.byte	6                               # DW_AT_encoding281	.byte	1                               # DW_AT_byte_size282	.byte	0                               # End Of Children Mark283.Ldebug_info_end0:284	.section	.debug_ranges,"",@progbits285.Ldebug_ranges0:286	.quad	_Z12doStuffOtheri.__part.1287	.quad	.LBB_END0_1288	.quad	_Z12doStuffOtheri.__part.2289	.quad	.LBB_END0_2290	.quad	.Lfunc_begin0291	.quad	.Lfunc_end0292	.quad	0293	.quad	0294.Ldebug_ranges1:295	.quad	_Z12doStuffOtheri.__part.1296	.quad	.LBB_END0_1297	.quad	_Z12doStuffOtheri.__part.2298	.quad	.LBB_END0_2299	.quad	.Lfunc_begin0300	.quad	.Lfunc_end0301	.quad	.Lfunc_begin1302	.quad	.Lfunc_end1303	.quad	0304	.quad	0305	.section	.debug_str,"MS",@progbits,1306.Linfo_string0:307	.asciz	"clang version 19.0.0git (git@github.com:llvm/llvm-project.git df542e1ed82bd4e5a9e345d3a3ae63a76893a0cf)" # string offset=0308.Linfo_string1:309	.asciz	"mainOther.cpp"                 # string offset=104310.Linfo_string2:311	.asciz	"."                             # string offset=118312.Linfo_string3:313	.asciz	"_Z12doStuffOtheri"             # string offset=120314.Linfo_string4:315	.asciz	"doStuffOther"                  # string offset=138316.Linfo_string5:317	.asciz	"int"                           # string offset=151318.Linfo_string6:319	.asciz	"_Z9mainOtheriPPKc"             # string offset=155320.Linfo_string7:321	.asciz	"mainOther"                     # string offset=173322.Linfo_string8:323	.asciz	"val"                           # string offset=183324.Linfo_string9:325	.asciz	"argc"                          # string offset=187326.Linfo_string10:327	.asciz	"argv"                          # string offset=192328.Linfo_string11:329	.asciz	"char"                          # string offset=197330	.ident	"clang version 19.0.0git (git@github.com:llvm/llvm-project.git df542e1ed82bd4e5a9e345d3a3ae63a76893a0cf)"331	.section	".note.GNU-stack","",@progbits332	.addrsig333	.addrsig_sym _Z12doStuffOtheri334	.section	.debug_line,"",@progbits335.Lline_table_start0:336