1 # clang++ -fbasic-block-sections=all -ffunction-sections -g2 -gdwarf-4
2 # int doStuff(int val) {
8 # int main(int argc, const char** argv) {
9 # return doStuff(argc);
13 .section .text._Z7doStuffi,"ax",@progbits
14 .globl _Z7doStuffi # -- Begin function _Z7doStuffi
16 .type _Z7doStuffi,@function
17 _Z7doStuffi
: # @_Z7doStuffi
19 .file 1 "/subprogramRanges" "main.cpp"
20 .loc 1 1 0 # main.cpp:1:0
24 .cfi_def_cfa_offset 16
27 .cfi_def_cfa_register %rbp
30 .loc 1 2 7 prologue_end # main.cpp:2:7
33 .loc 1 2 7 is_stmt 0 # main.cpp:2:7
34 je _Z7doStuffi.__part.2
35 jmp _Z7doStuffi.__part.1
38 .section .text._Z7doStuffi,"ax",@progbits,unique,1
39 _Z7doStuffi.__part.1
: # %if.then
43 .loc 1 3 5 is_stmt 1 # main.cpp:3:5
47 jmp _Z7doStuffi.__part.2
49 .size _Z7doStuffi.__part.1, .LBB_END0_1-_Z7doStuffi.__part.1
51 .section .text._Z7doStuffi,"ax",@progbits,unique,2
52 _Z7doStuffi.__part.2
: # %if.end
56 .loc 1 4 10 # main.cpp:4:10
58 .loc 1 4 3 epilogue_begin is_stmt 0 # main.cpp:4:3
63 .size _Z7doStuffi.__part.2, .LBB_END0_2-_Z7doStuffi.__part.2
65 .section .text._Z7doStuffi,"ax",@progbits
67 .size _Z7doStuffi, .Lfunc_end0-_Z7doStuffi
69 .section .text.main,"ax",@progbits
70 .globl main # -- Begin function main
75 .loc 1 7 0 is_stmt 1 # main.cpp:7:0
79 .cfi_def_cfa_offset 16
82 .cfi_def_cfa_register %rbp
88 .loc 1 8 21 prologue_end # main.cpp:8:21
90 .loc 1 8 13 is_stmt 0 # main.cpp:8:13
92 .loc 1 8 5 epilogue_begin # main.cpp:8:5
100 .size main, .Lfunc_end1-main
102 .section .debug_abbrev,"",@progbits
103 .byte 1 # Abbreviation Code
104 .byte 17 # DW_TAG_compile_unit
105 .byte 1 # DW_CHILDREN_yes
106 .byte 37 # DW_AT_producer
107 .byte 14 # DW_FORM_strp
108 .byte 19 # DW_AT_language
109 .byte 5 # DW_FORM_data2
111 .byte 14 # DW_FORM_strp
112 .byte 16 # DW_AT_stmt_list
113 .byte 23 # DW_FORM_sec_offset
114 .byte 27 # DW_AT_comp_dir
115 .byte 14 # DW_FORM_strp
116 .byte 17 # DW_AT_low_pc
117 .byte 1 # DW_FORM_addr
118 .byte 85 # DW_AT_ranges
119 .byte 23 # DW_FORM_sec_offset
122 .byte 2 # Abbreviation Code
123 .byte 46 # DW_TAG_subprogram
124 .byte 1 # DW_CHILDREN_yes
125 .byte 85 # DW_AT_ranges
126 .byte 23 # DW_FORM_sec_offset
127 .byte 64 # DW_AT_frame_base
128 .byte 24 # DW_FORM_exprloc
129 .byte 110 # DW_AT_linkage_name
130 .byte 14 # DW_FORM_strp
132 .byte 14 # DW_FORM_strp
133 .byte 58 # DW_AT_decl_file
134 .byte 11 # DW_FORM_data1
135 .byte 59 # DW_AT_decl_line
136 .byte 11 # DW_FORM_data1
137 .byte 73 # DW_AT_type
138 .byte 19 # DW_FORM_ref4
139 .byte 63 # DW_AT_external
140 .byte 25 # DW_FORM_flag_present
143 .byte 3 # Abbreviation Code
144 .byte 5 # DW_TAG_formal_parameter
145 .byte 0 # DW_CHILDREN_no
146 .byte 2 # DW_AT_location
147 .byte 24 # DW_FORM_exprloc
149 .byte 14 # DW_FORM_strp
150 .byte 58 # DW_AT_decl_file
151 .byte 11 # DW_FORM_data1
152 .byte 59 # DW_AT_decl_line
153 .byte 11 # DW_FORM_data1
154 .byte 73 # DW_AT_type
155 .byte 19 # DW_FORM_ref4
158 .byte 4 # Abbreviation Code
159 .byte 46 # DW_TAG_subprogram
160 .byte 1 # DW_CHILDREN_yes
161 .byte 17 # DW_AT_low_pc
162 .byte 1 # DW_FORM_addr
163 .byte 18 # DW_AT_high_pc
164 .byte 6 # DW_FORM_data4
165 .byte 64 # DW_AT_frame_base
166 .byte 24 # DW_FORM_exprloc
168 .byte 14 # DW_FORM_strp
169 .byte 58 # DW_AT_decl_file
170 .byte 11 # DW_FORM_data1
171 .byte 59 # DW_AT_decl_line
172 .byte 11 # DW_FORM_data1
173 .byte 73 # DW_AT_type
174 .byte 19 # DW_FORM_ref4
175 .byte 63 # DW_AT_external
176 .byte 25 # DW_FORM_flag_present
179 .byte 5 # Abbreviation Code
180 .byte 36 # DW_TAG_base_type
181 .byte 0 # DW_CHILDREN_no
183 .byte 14 # DW_FORM_strp
184 .byte 62 # DW_AT_encoding
185 .byte 11 # DW_FORM_data1
186 .byte 11 # DW_AT_byte_size
187 .byte 11 # DW_FORM_data1
190 .byte 6 # Abbreviation Code
191 .byte 15 # DW_TAG_pointer_type
192 .byte 0 # DW_CHILDREN_no
193 .byte 73 # DW_AT_type
194 .byte 19 # DW_FORM_ref4
197 .byte 7 # Abbreviation Code
198 .byte 38 # DW_TAG_const_type
199 .byte 0 # DW_CHILDREN_no
200 .byte 73 # DW_AT_type
201 .byte 19 # DW_FORM_ref4
205 .section .debug_info,"",@progbits
207 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
209 .short 4 # DWARF version number
210 .long .debug_abbrev # Offset Into Abbrev. Section
211 .byte 8 # Address Size (in bytes)
212 .byte 1 # Abbrev [1] 0xb:0x97 DW_TAG_compile_unit
213 .long .Linfo_string0 # DW_AT_producer
214 .short 33 # DW_AT_language
215 .long .Linfo_string1 # DW_AT_name
216 .long .Lline_table_start0 # DW_AT_stmt_list
217 .long .Linfo_string2 # DW_AT_comp_dir
218 .quad 0 # DW_AT_low_pc
219 .long .Ldebug_ranges1 # DW_AT_ranges
220 .byte 2 # Abbrev [2] 0x2a:0x24 DW_TAG_subprogram
221 .long .Ldebug_ranges0 # DW_AT_ranges
222 .byte 1 # DW_AT_frame_base
224 .long .Linfo_string3 # DW_AT_linkage_name
225 .long .Linfo_string4 # DW_AT_name
226 .byte 1 # DW_AT_decl_file
227 .byte 1 # DW_AT_decl_line
228 .long 132 # DW_AT_type
230 .byte 3 # Abbrev [3] 0x3f:0xe DW_TAG_formal_parameter
231 .byte 2 # DW_AT_location
234 .long .Linfo_string7 # DW_AT_name
235 .byte 1 # DW_AT_decl_file
236 .byte 1 # DW_AT_decl_line
237 .long 132 # DW_AT_type
238 .byte 0 # End Of Children Mark
239 .byte 4 # Abbrev [4] 0x4e:0x36 DW_TAG_subprogram
240 .quad .Lfunc_begin1 # DW_AT_low_pc
241 .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
242 .byte 1 # DW_AT_frame_base
244 .long .Linfo_string6 # DW_AT_name
245 .byte 1 # DW_AT_decl_file
246 .byte 7 # DW_AT_decl_line
247 .long 132 # DW_AT_type
249 .byte 3 # Abbrev [3] 0x67:0xe DW_TAG_formal_parameter
250 .byte 2 # DW_AT_location
253 .long .Linfo_string8 # DW_AT_name
254 .byte 1 # DW_AT_decl_file
255 .byte 7 # DW_AT_decl_line
256 .long 132 # DW_AT_type
257 .byte 3 # Abbrev [3] 0x75:0xe DW_TAG_formal_parameter
258 .byte 2 # DW_AT_location
261 .long .Linfo_string9 # DW_AT_name
262 .byte 1 # DW_AT_decl_file
263 .byte 7 # DW_AT_decl_line
264 .long 139 # DW_AT_type
265 .byte 0 # End Of Children Mark
266 .byte 5 # Abbrev [5] 0x84:0x7 DW_TAG_base_type
267 .long .Linfo_string5 # DW_AT_name
268 .byte 5 # DW_AT_encoding
269 .byte 4 # DW_AT_byte_size
270 .byte 6 # Abbrev [6] 0x8b:0x5 DW_TAG_pointer_type
271 .long 144 # DW_AT_type
272 .byte 6 # Abbrev [6] 0x90:0x5 DW_TAG_pointer_type
273 .long 149 # DW_AT_type
274 .byte 7 # Abbrev [7] 0x95:0x5 DW_TAG_const_type
275 .long 154 # DW_AT_type
276 .byte 5 # Abbrev [5] 0x9a:0x7 DW_TAG_base_type
277 .long .Linfo_string10 # DW_AT_name
278 .byte 6 # DW_AT_encoding
279 .byte 1 # DW_AT_byte_size
280 .byte 0 # End Of Children Mark
282 .section .debug_ranges,"",@progbits
284 .quad _Z7doStuffi.__part.1
286 .quad _Z7doStuffi.__part.2
293 .quad _Z7doStuffi.__part.1
295 .quad _Z7doStuffi.__part.2
303 .section .debug_str,"MS",@progbits,1
305 .asciz "clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)" # string offset=0
307 .asciz "main.cpp" # string offset=105
309 .asciz "/subprogramRanges" # string offset=114
311 .asciz "_Z7doStuffi" # string offset=169
313 .asciz "doStuff" # string offset=181
315 .asciz "int" # string offset=189
317 .asciz "main" # string offset=193
319 .asciz "val" # string offset=198
321 .asciz "argc" # string offset=202
323 .asciz "argv" # string offset=207
325 .asciz "char" # string offset=212
326 .ident "clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)"
327 .section ".note.GNU-stack","",@progbits
329 .addrsig_sym _Z7doStuffi
330 .section .debug_line,"",@progbits