xref: /llvm-project/lld/test/COFF/Inputs/pdb-local-constants.s (revision 2298a44ccdc1a9babcb2712a0019d064b3cecd5a)
1	.text
2	.def	@feat.00;
3	.scl	3;
4	.type	0;
5	.endef
6	.globl	@feat.00
7.set @feat.00, 0
8	.file	"local_constant.cpp"
9	.def	main;
10	.scl	2;
11	.type	32;
12	.endef
13	.globl	main                            # -- Begin function main
14	.p2align	4, 0x90
15main:                                   # @main
16.Lfunc_begin0:
17	.cv_func_id 0
18# %bb.0:                                # %entry
19	#DEBUG_VALUE: main:i <- 123
20	.cv_file	1 "/home/tobias/code/llvm-project/build/local_constant.cpp" "C33315002D9B48E67EB3E617E430BC02" 1
21	.cv_loc	0 1 7 0                         # local_constant.cpp:7:0
22	movl	$444, %eax                      # imm = 0x1BC
23	retq
24.Ltmp0:
25.Lfunc_end0:
26                                        # -- End function
27	.section	.debug$S,"dr"
28	.p2align	2, 0x0
29	.long	4                               # Debug section magic
30	.long	241
31	.long	.Ltmp2-.Ltmp1                   # Subsection size
32.Ltmp1:
33	.short	.Ltmp4-.Ltmp3                   # Record length
34.Ltmp3:
35	.short	4353                            # Record kind: S_OBJNAME
36	.long	0                               # Signature
37	.byte	0                               # Object name
38	.p2align	2, 0x0
39.Ltmp4:
40	.short	.Ltmp6-.Ltmp5                   # Record length
41.Ltmp5:
42	.short	4412                            # Record kind: S_COMPILE3
43	.long	1                               # Flags and language
44	.short	208                             # CPUType
45	.short	16                              # Frontend version
46	.short	0
47	.short	0
48	.short	0
49	.short	16000                           # Backend version
50	.short	0
51	.short	0
52	.short	0
53	.asciz	"clang version 16.0.0 (git@github.com:llvm/llvm-project.git eef89bd2b3f4a13efcad176bb4c4dda1b1e202ce)" # Null-terminated compiler version string
54	.p2align	2, 0x0
55.Ltmp6:
56.Ltmp2:
57	.p2align	2, 0x0
58	.long	241                             # Symbol subsection for main
59	.long	.Ltmp8-.Ltmp7                   # Subsection size
60.Ltmp7:
61	.short	.Ltmp10-.Ltmp9                  # Record length
62.Ltmp9:
63	.short	4423                            # Record kind: S_GPROC32_ID
64	.long	0                               # PtrParent
65	.long	0                               # PtrEnd
66	.long	0                               # PtrNext
67	.long	.Lfunc_end0-main                # Code size
68	.long	0                               # Offset after prologue
69	.long	0                               # Offset before epilogue
70	.long	4098                            # Function type index
71	.secrel32	main                    # Function section relative address
72	.secidx	main                            # Function section index
73	.byte	0                               # Flags
74	.asciz	"main"                          # Function name
75	.p2align	2, 0x0
76.Ltmp10:
77	.short	.Ltmp12-.Ltmp11                 # Record length
78.Ltmp11:
79	.short	4114                            # Record kind: S_FRAMEPROC
80	.long	0                               # FrameSize
81	.long	0                               # Padding
82	.long	0                               # Offset of padding
83	.long	0                               # Bytes of callee saved registers
84	.long	0                               # Exception handler offset
85	.short	0                               # Exception handler section
86	.long	1056768                         # Flags (defines frame register)
87	.p2align	2, 0x0
88.Ltmp12:
89	.short	.Ltmp14-.Ltmp13                 # Record length
90.Ltmp13:
91	.short	4359                            # Record kind: S_CONSTANT
92	.long	116                             # Type
93	.byte	0x7b, 0x00                      # Value
94	.asciz	"i"                             # Name
95	.p2align	2, 0x0
96.Ltmp14:
97	.short	2                               # Record length
98	.short	4431                            # Record kind: S_PROC_ID_END
99.Ltmp8:
100	.p2align	2, 0x0
101	.cv_linetable	0, main, .Lfunc_end0
102	.long	241                             # Symbol subsection for globals
103	.long	.Ltmp16-.Ltmp15                 # Subsection size
104.Ltmp15:
105	.short	.Ltmp18-.Ltmp17                 # Record length
106.Ltmp17:
107	.short	4359                            # Record kind: S_CONSTANT
108	.long	4099                            # Type
109	.byte	0x41, 0x01                      # Value
110	.asciz	"g_const"                       # Name
111	.p2align	2, 0x0
112.Ltmp18:
113.Ltmp16:
114	.p2align	2, 0x0
115	.cv_filechecksums                       # File index to string table offset subsection
116	.cv_stringtable                         # String table
117	.long	241
118	.long	.Ltmp20-.Ltmp19                 # Subsection size
119.Ltmp19:
120	.short	.Ltmp22-.Ltmp21                 # Record length
121.Ltmp21:
122	.short	4428                            # Record kind: S_BUILDINFO
123	.long	4103                            # LF_BUILDINFO index
124	.p2align	2, 0x0
125.Ltmp22:
126.Ltmp20:
127	.p2align	2, 0x0
128	.section	.debug$T,"dr"
129	.p2align	2, 0x0
130	.long	4                               # Debug section magic
131	# ArgList (0x1000)
132	.short	0x6                             # Record length
133	.short	0x1201                          # Record kind: LF_ARGLIST
134	.long	0x0                             # NumArgs
135	# Procedure (0x1001)
136	.short	0xe                             # Record length
137	.short	0x1008                          # Record kind: LF_PROCEDURE
138	.long	0x74                            # ReturnType: int
139	.byte	0x0                             # CallingConvention: NearC
140	.byte	0x0                             # FunctionOptions
141	.short	0x0                             # NumParameters
142	.long	0x1000                          # ArgListType: ()
143	# FuncId (0x1002)
144	.short	0x12                            # Record length
145	.short	0x1601                          # Record kind: LF_FUNC_ID
146	.long	0x0                             # ParentScope
147	.long	0x1001                          # FunctionType: int ()
148	.asciz	"main"                          # Name
149	.byte	243
150	.byte	242
151	.byte	241
152	# Modifier (0x1003)
153	.short	0xa                             # Record length
154	.short	0x1001                          # Record kind: LF_MODIFIER
155	.long	0x74                            # ModifiedType: int
156	.short	0x1                             # Modifiers ( Const (0x1) )
157	.byte	242
158	.byte	241
159	# StringId (0x1004)
160	.short	0x2e                            # Record length
161	.short	0x1605                          # Record kind: LF_STRING_ID
162	.long	0x0                             # Id
163	.asciz	"/home/tobias/code/llvm-project/build" # StringData
164	.byte	243
165	.byte	242
166	.byte	241
167	# StringId (0x1005)
168	.short	0x1a                            # Record length
169	.short	0x1605                          # Record kind: LF_STRING_ID
170	.long	0x0                             # Id
171	.asciz	"local_constant.cpp"            # StringData
172	.byte	241
173	# StringId (0x1006)
174	.short	0xa                             # Record length
175	.short	0x1605                          # Record kind: LF_STRING_ID
176	.long	0x0                             # Id
177	.byte	0                               # StringData
178	.byte	243
179	.byte	242
180	.byte	241
181	# BuildInfo (0x1007)
182	.short	0x1a                            # Record length
183	.short	0x1603                          # Record kind: LF_BUILDINFO
184	.short	0x5                             # NumArgs
185	.long	0x1004                          # Argument: /home/tobias/code/llvm-project/build
186	.long	0x0                             # Argument
187	.long	0x1005                          # Argument: local_constant.cpp
188	.long	0x1006                          # Argument
189	.long	0x0                             # Argument
190	.byte	242
191	.byte	241
192	.addrsig
193