xref: /llvm-project/bolt/test/X86/Inputs/dwarf5-debug-line-not-modified-main.s (revision 66e943b1a9751db1611f6ba07e4c46899455d686)
1# int main() {
2#  return 0;
3# }
4
5	.text
6	.file	"main.cpp"
7	.globl	main                            # -- Begin function main
8	.p2align	4, 0x90
9	.type	main,@function
10main:                                   # @main
11.Lfunc_begin0:
12	.file	0 "/test" "main.cpp" md5 0x7228a872dc174332f3151a7ac3344b26
13	.loc	0 1 0                           # main.cpp:1:0
14	.cfi_startproc
15# %bb.0:                                # %entry
16	pushq	%rbp
17	.cfi_def_cfa_offset 16
18	.cfi_offset %rbp, -16
19	movq	%rsp, %rbp
20	.cfi_def_cfa_register %rbp
21	movl	$0, -4(%rbp)
22.Ltmp0:
23	.loc	0 2 2 prologue_end              # main.cpp:2:2
24	xorl	%eax, %eax
25	.loc	0 2 2 epilogue_begin is_stmt 0  # main.cpp:2:2
26	popq	%rbp
27	.cfi_def_cfa %rsp, 8
28	retq
29.Ltmp1:
30.Lfunc_end0:
31	.size	main, .Lfunc_end0-main
32	.cfi_endproc
33                                        # -- End function
34	.section	.debug_abbrev,"",@progbits
35	.byte	1                               # Abbreviation Code
36	.byte	17                              # DW_TAG_compile_unit
37	.byte	1                               # DW_CHILDREN_yes
38	.byte	37                              # DW_AT_producer
39	.byte	37                              # DW_FORM_strx1
40	.byte	19                              # DW_AT_language
41	.byte	5                               # DW_FORM_data2
42	.byte	3                               # DW_AT_name
43	.byte	37                              # DW_FORM_strx1
44	.byte	114                             # DW_AT_str_offsets_base
45	.byte	23                              # DW_FORM_sec_offset
46	.byte	16                              # DW_AT_stmt_list
47	.byte	23                              # DW_FORM_sec_offset
48	.byte	27                              # DW_AT_comp_dir
49	.byte	37                              # DW_FORM_strx1
50	.byte	17                              # DW_AT_low_pc
51	.byte	27                              # DW_FORM_addrx
52	.byte	18                              # DW_AT_high_pc
53	.byte	6                               # DW_FORM_data4
54	.byte	115                             # DW_AT_addr_base
55	.byte	23                              # DW_FORM_sec_offset
56	.byte	0                               # EOM(1)
57	.byte	0                               # EOM(2)
58	.byte	2                               # Abbreviation Code
59	.byte	46                              # DW_TAG_subprogram
60	.byte	0                               # DW_CHILDREN_no
61	.byte	17                              # DW_AT_low_pc
62	.byte	27                              # DW_FORM_addrx
63	.byte	18                              # DW_AT_high_pc
64	.byte	6                               # DW_FORM_data4
65	.byte	64                              # DW_AT_frame_base
66	.byte	24                              # DW_FORM_exprloc
67	.byte	3                               # DW_AT_name
68	.byte	37                              # DW_FORM_strx1
69	.byte	58                              # DW_AT_decl_file
70	.byte	11                              # DW_FORM_data1
71	.byte	59                              # DW_AT_decl_line
72	.byte	11                              # DW_FORM_data1
73	.byte	73                              # DW_AT_type
74	.byte	19                              # DW_FORM_ref4
75	.byte	63                              # DW_AT_external
76	.byte	25                              # DW_FORM_flag_present
77	.byte	0                               # EOM(1)
78	.byte	0                               # EOM(2)
79	.byte	3                               # Abbreviation Code
80	.byte	36                              # DW_TAG_base_type
81	.byte	0                               # DW_CHILDREN_no
82	.byte	3                               # DW_AT_name
83	.byte	37                              # DW_FORM_strx1
84	.byte	62                              # DW_AT_encoding
85	.byte	11                              # DW_FORM_data1
86	.byte	11                              # DW_AT_byte_size
87	.byte	11                              # DW_FORM_data1
88	.byte	0                               # EOM(1)
89	.byte	0                               # EOM(2)
90	.byte	0                               # EOM(3)
91	.section	.debug_info,"",@progbits
92.Lcu_begin0:
93	.long	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
94.Ldebug_info_start0:
95	.short	5                               # DWARF version number
96	.byte	1                               # DWARF Unit Type
97	.byte	8                               # Address Size (in bytes)
98	.long	.debug_abbrev                   # Offset Into Abbrev. Section
99	.byte	1                               # Abbrev [1] 0xc:0x2b DW_TAG_compile_unit
100	.byte	0                               # DW_AT_producer
101	.short	33                              # DW_AT_language
102	.byte	1                               # DW_AT_name
103	.long	.Lstr_offsets_base0             # DW_AT_str_offsets_base
104	.long	.Lline_table_start0             # DW_AT_stmt_list
105	.byte	2                               # DW_AT_comp_dir
106	.byte	0                               # DW_AT_low_pc
107	.long	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc
108	.long	.Laddr_table_base0              # DW_AT_addr_base
109	.byte	2                               # Abbrev [2] 0x23:0xf DW_TAG_subprogram
110	.byte	0                               # DW_AT_low_pc
111	.long	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc
112	.byte	1                               # DW_AT_frame_base
113	.byte	86
114	.byte	3                               # DW_AT_name
115	.byte	0                               # DW_AT_decl_file
116	.byte	1                               # DW_AT_decl_line
117	.long	50                              # DW_AT_type
118                                        # DW_AT_external
119	.byte	3                               # Abbrev [3] 0x32:0x4 DW_TAG_base_type
120	.byte	4                               # DW_AT_name
121	.byte	5                               # DW_AT_encoding
122	.byte	4                               # DW_AT_byte_size
123	.byte	0                               # End Of Children Mark
124.Ldebug_info_end0:
125	.section	.debug_str_offsets,"",@progbits
126	.long	24                              # Length of String Offsets Set
127	.short	5
128	.short	0
129.Lstr_offsets_base0:
130	.section	.debug_str,"MS",@progbits,1
131.Linfo_string0:
132	.asciz	"clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)" # string offset=0
133.Linfo_string1:
134	.asciz	"main.cpp"                      # string offset=105
135.Linfo_string2:
136	.asciz	"/test" # string offset=114
137.Linfo_string3:
138	.asciz	"main"                          # string offset=152
139.Linfo_string4:
140	.asciz	"int"                           # string offset=157
141	.section	.debug_str_offsets,"",@progbits
142	.long	.Linfo_string0
143	.long	.Linfo_string1
144	.long	.Linfo_string2
145	.long	.Linfo_string3
146	.long	.Linfo_string4
147	.section	.debug_addr,"",@progbits
148	.long	.Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution
149.Ldebug_addr_start0:
150	.short	5                               # DWARF version number
151	.byte	8                               # Address size
152	.byte	0                               # Segment selector size
153.Laddr_table_base0:
154	.quad	.Lfunc_begin0
155.Ldebug_addr_end0:
156	.ident	"clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)"
157	.section	".note.GNU-stack","",@progbits
158	.addrsig
159	.section	.debug_line,"",@progbits
160.Lline_table_start0:
161