File: symbolizer-line-numbers.s

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (322 lines) | stat: -rw-r--r-- 12,459 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj %s -o %t.obj -triple x86_64-windows-msvc
# RUN: lld-link -entry:main -nodefaultlib %t.obj -out:%t.exe -pdb:%t.pdb -debug
# RUN: llvm-symbolizer --obj=%t.exe --relative-address \
# RUN:   0x1000 0x1003 0x1010 0x1013 | FileCheck %s

# Compiled from this cpp code:
# int f1(int x) {
#   int y = x + 1;
#   return y;
# }
# int f2(int n) {
#   return f1(n);
# }
# int main() {
#   return f2(100);
# }

.text
	.def	 @feat.00;
	.scl	3;
	.type	0;
	.endef
	.globl	@feat.00
.set @feat.00, 0
	.file	"t.cpp"
	.def	 "?f1@@YAHH@Z";
	.scl	2;
	.type	32;
	.endef
	.globl	"?f1@@YAHH@Z"                   # -- Begin function ?f1@@YAHH@Z
	.p2align	4, 0x90
"?f1@@YAHH@Z":                          # @"?f1@@YAHH@Z"
.Lfunc_begin0:
	.cv_func_id 0
# %bb.0:                                # %entry
	.cv_file	1 "C:\\src\\tests\\t.cpp" "E6E6D87A9021656AD44E74484F5BA421" 1

# CHECK:      f1(int)
# CHECK-NEXT: t.cpp:2:13
	.cv_loc	0 1 2 13                        # t.cpp:2:13
                                        # kill: def $ecx killed $ecx def $rcx
	leal	1(%rcx), %eax

# CHECK:      f1(int)
# CHECK-NEXT: t.cpp:3:3
	.cv_loc	0 1 3 3                         # t.cpp:3:3
	retq
.Ltmp0:
.Lfunc_end0:
                                        # -- End function
	.def	 "?f2@@YAHH@Z";
	.scl	2;
	.type	32;
	.endef
	.globl	"?f2@@YAHH@Z"                   # -- Begin function ?f2@@YAHH@Z
	.p2align	4, 0x90
"?f2@@YAHH@Z":                          # @"?f2@@YAHH@Z"
.Lfunc_begin1:
	.cv_func_id 1
# %bb.0:                                # %entry
# CHECK:      f1
# CHECK-NEXT: t.cpp:2:0
# CHECK-NEXT: f2(int)
# CHECK-NEXT: t.cpp:6:3
	.cv_inline_site_id 2 within 1 inlined_at 1 6 10
	.cv_loc	2 1 2 13                        # t.cpp:2:13
                                        # kill: def $ecx killed $ecx def $rcx
	leal	1(%rcx), %eax
.Ltmp1:
	.cv_loc	1 1 6 3                         # t.cpp:6:3
	retq
# CHECK:      f2(int)
# CHECK-NEXT: t.cpp:6:3
.Ltmp2:
.Lfunc_end1:
                                        # -- End function
	.def	 main;
	.scl	2;
	.type	32;
	.endef
	.globl	main                            # -- Begin function main
	.p2align	4, 0x90
main:                                   # @main
.Lfunc_begin2:
	.cv_func_id 3
# %bb.0:                                # %entry
	.cv_loc	3 1 9 3                         # t.cpp:9:3
	movl	$101, %eax
	retq
.Ltmp3:
.Lfunc_end2:
                                        # -- End function
	.section	.debug$S,"dr"
	.p2align	2
	.long	4                               # Debug section magic
	.long	241
	.long	.Ltmp5-.Ltmp4                   # Subsection size
.Ltmp4:
	.short	.Ltmp7-.Ltmp6                   # Record length
.Ltmp6:
	.short	4412                            # Record kind: S_COMPILE3
	.long	1                               # Flags and language
	.short	208                             # CPUType
	.short	12                              # Frontend version
	.short	0
	.short	0
	.short	0
	.short	12000                           # Backend version
	.short	0
	.short	0
	.short	0
	.asciz	"clang version 12.0.0 (https://github.com/llvm/llvm-project.git e2e86f4e77ec2fd79743f4d0e94689e9668600ad)" # Null-terminated compiler version string
	.p2align	2
.Ltmp7:
.Ltmp5:
	.p2align	2
	.long	246                             # Inlinee lines subsection
	.long	.Ltmp9-.Ltmp8                   # Subsection size
.Ltmp8:
	.long	0                               # Inlinee lines signature

                                        # Inlined function f1 starts at t.cpp:1
	.long	4098                            # Type index of inlined function
	.cv_filechecksumoffset	1               # Offset into filechecksum table
	.long	1                               # Starting line number
.Ltmp9:
	.p2align	2
	.long	241                             # Symbol subsection for f1
	.long	.Ltmp11-.Ltmp10                 # Subsection size
.Ltmp10:
	.short	.Ltmp13-.Ltmp12                 # Record length
.Ltmp12:
	.short	4423                            # Record kind: S_GPROC32_ID
	.long	0                               # PtrParent
	.long	0                               # PtrEnd
	.long	0                               # PtrNext
	.long	.Lfunc_end0-"?f1@@YAHH@Z"       # Code size
	.long	0                               # Offset after prologue
	.long	0                               # Offset before epilogue
	.long	4098                            # Function type index
	.secrel32	"?f1@@YAHH@Z"           # Function section relative address
	.secidx	"?f1@@YAHH@Z"                   # Function section index
	.byte	0                               # Flags
	.asciz	"f1"                            # Function name
	.p2align	2
.Ltmp13:
	.short	.Ltmp15-.Ltmp14                 # Record length
.Ltmp14:
	.short	4114                            # Record kind: S_FRAMEPROC
	.long	0                               # FrameSize
	.long	0                               # Padding
	.long	0                               # Offset of padding
	.long	0                               # Bytes of callee saved registers
	.long	0                               # Exception handler offset
	.short	0                               # Exception handler section
	.long	1048576                         # Flags (defines frame register)
	.p2align	2
.Ltmp15:
	.short	2                               # Record length
	.short	4431                            # Record kind: S_PROC_ID_END
.Ltmp11:
	.p2align	2
	.cv_linetable	0, "?f1@@YAHH@Z", .Lfunc_end0
	.long	241                             # Symbol subsection for f2
	.long	.Ltmp17-.Ltmp16                 # Subsection size
.Ltmp16:
	.short	.Ltmp19-.Ltmp18                 # Record length
.Ltmp18:
	.short	4423                            # Record kind: S_GPROC32_ID
	.long	0                               # PtrParent
	.long	0                               # PtrEnd
	.long	0                               # PtrNext
	.long	.Lfunc_end1-"?f2@@YAHH@Z"       # Code size
	.long	0                               # Offset after prologue
	.long	0                               # Offset before epilogue
	.long	4099                            # Function type index
	.secrel32	"?f2@@YAHH@Z"           # Function section relative address
	.secidx	"?f2@@YAHH@Z"                   # Function section index
	.byte	0                               # Flags
	.asciz	"f2"                            # Function name
	.p2align	2
.Ltmp19:
	.short	.Ltmp21-.Ltmp20                 # Record length
.Ltmp20:
	.short	4114                            # Record kind: S_FRAMEPROC
	.long	0                               # FrameSize
	.long	0                               # Padding
	.long	0                               # Offset of padding
	.long	0                               # Bytes of callee saved registers
	.long	0                               # Exception handler offset
	.short	0                               # Exception handler section
	.long	1048576                         # Flags (defines frame register)
	.p2align	2
.Ltmp21:
	.short	.Ltmp23-.Ltmp22                 # Record length
.Ltmp22:
	.short	4429                            # Record kind: S_INLINESITE
	.long	0                               # PtrParent
	.long	0                               # PtrEnd
	.long	4098                            # Inlinee type index
	.cv_inline_linetable	2 1 1 .Lfunc_begin1 .Lfunc_end1
	.p2align	2
.Ltmp23:
	.short	2                               # Record length
	.short	4430                            # Record kind: S_INLINESITE_END
	.short	2                               # Record length
	.short	4431                            # Record kind: S_PROC_ID_END
.Ltmp17:
	.p2align	2
	.cv_linetable	1, "?f2@@YAHH@Z", .Lfunc_end1
	.long	241                             # Symbol subsection for main
	.long	.Ltmp25-.Ltmp24                 # Subsection size
.Ltmp24:
	.short	.Ltmp27-.Ltmp26                 # Record length
.Ltmp26:
	.short	4423                            # Record kind: S_GPROC32_ID
	.long	0                               # PtrParent
	.long	0                               # PtrEnd
	.long	0                               # PtrNext
	.long	.Lfunc_end2-main                # Code size
	.long	0                               # Offset after prologue
	.long	0                               # Offset before epilogue
	.long	4100                            # Function type index
	.secrel32	main                    # Function section relative address
	.secidx	main                            # Function section index
	.byte	0                               # Flags
	.asciz	"main"                          # Function name
	.p2align	2
.Ltmp27:
	.short	.Ltmp29-.Ltmp28                 # Record length
.Ltmp28:
	.short	4114                            # Record kind: S_FRAMEPROC
	.long	0                               # FrameSize
	.long	0                               # Padding
	.long	0                               # Offset of padding
	.long	0                               # Bytes of callee saved registers
	.long	0                               # Exception handler offset
	.short	0                               # Exception handler section
	.long	1048576                         # Flags (defines frame register)
	.p2align	2
.Ltmp29:
	.short	2                               # Record length
	.short	4431                            # Record kind: S_PROC_ID_END
.Ltmp25:
	.p2align	2
	.cv_linetable	3, main, .Lfunc_end2
	.cv_filechecksums                       # File index to string table offset subsection
	.cv_stringtable                         # String table
	.long	241
	.long	.Ltmp31-.Ltmp30                 # Subsection size
.Ltmp30:
	.short	.Ltmp33-.Ltmp32                 # Record length
.Ltmp32:
	.short	4428                            # Record kind: S_BUILDINFO
	.long	4103                            # LF_BUILDINFO index
	.p2align	2
.Ltmp33:
.Ltmp31:
	.p2align	2
	.section	.debug$T,"dr"
	.p2align	2
	.long	4                               # Debug section magic
	# ArgList (0x1000)
	.short	0x6                             # Record length
	.short	0x1201                          # Record kind: LF_ARGLIST
	.long	0x0                             # NumArgs
	# Procedure (0x1001)
	.short	0xe                             # Record length
	.short	0x1008                          # Record kind: LF_PROCEDURE
	.long	0x3                             # ReturnType: void
	.byte	0x0                             # CallingConvention: NearC
	.byte	0x0                             # FunctionOptions
	.short	0x0                             # NumParameters
	.long	0x1000                          # ArgListType: ()
	# FuncId (0x1002)
	.short	0xe                             # Record length
	.short	0x1601                          # Record kind: LF_FUNC_ID
	.long	0x0                             # ParentScope
	.long	0x1001                          # FunctionType: void ()
	.asciz	"f1"                            # Name
	.byte	241
	# FuncId (0x1003)
	.short	0xe                             # Record length
	.short	0x1601                          # Record kind: LF_FUNC_ID
	.long	0x0                             # ParentScope
	.long	0x1001                          # FunctionType: void ()
	.asciz	"f2"                            # Name
	.byte	241
	# FuncId (0x1004)
	.short	0x12                            # Record length
	.short	0x1601                          # Record kind: LF_FUNC_ID
	.long	0x0                             # ParentScope
	.long	0x1001                          # FunctionType: void ()
	.asciz	"main"                          # Name
	.byte	243
	.byte	242
	.byte	241
	# StringId (0x1005)
	.short	0x16                            # Record length
	.short	0x1605                          # Record kind: LF_STRING_ID
	.long	0x0                             # Id
	.asciz	"C:\\src\\tests"                # StringData
	.byte	243
	.byte	242
	.byte	241
	# StringId (0x1006)
	.short	0xe                             # Record length
	.short	0x1605                          # Record kind: LF_STRING_ID
	.long	0x0                             # Id
	.asciz	"<stdin>"                       # StringData
	# BuildInfo (0x1007)
	.short	0x1a                            # Record length
	.short	0x1603                          # Record kind: LF_BUILDINFO
	.short	0x5                             # NumArgs
	.long	0x1005                          # Argument: C:\src\tests
	.long	0x0                             # Argument
	.long	0x1006                          # Argument: <stdin>
	.long	0x0                             # Argument
	.long	0x0                             # Argument
	.byte	242
	.byte	241