Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / Inputs / pdb-scopes-b.yaml
blobb1c602143c3f110e1616d6a40e3803c7985b32c1
1 --- !COFF
2 header:
3   Machine:         IMAGE_FILE_MACHINE_AMD64
4   Characteristics: [  ]
5 sections:
6   - Name:            .drectve
7     Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
8     Alignment:       1
9     SectionData:     2020202F44454641554C544C49423A224C4942434D5422202F44454641554C544C49423A224F4C444E414D45532220
10   - Name:            '.debug$S'
11     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
12     Alignment:       1
13     Subsections:
14       - !Symbols
15         Records:
16           - Kind:            S_OBJNAME
17             ObjNameSym:
18               Signature:       0
19               ObjectName:      'C:\src\llvm-project\build\b.obj'
20           - Kind:            S_COMPILE3
21             Compile3Sym:
22               Flags:           [ SecurityChecks, HotPatch ]
23               Machine:         X64
24               FrontendMajor:   19
25               FrontendMinor:   0
26               FrontendBuild:   24215
27               FrontendQFE:     1
28               BackendMajor:    19
29               BackendMinor:    0
30               BackendBuild:    24215
31               BackendQFE:      1
32               Version:         'Microsoft (R) Optimizing Compiler'
33       - !Symbols
34         Records:
35           - Kind:            S_GPROC32_ID
36             ProcSym:
37               CodeSize:        62
38               DbgStart:        8
39               DbgEnd:          57
40               FunctionType:    4101
41               Flags:           [  ]
42               DisplayName:     f
43           - Kind:            S_FRAMEPROC
44             FrameProcSym:
45               TotalFrameBytes: 56
46               PaddingFrameBytes: 0
47               OffsetToPadding: 0
48               BytesOfCalleeSavedRegisters: 0
49               OffsetOfExceptionHandler: 0
50               SectionIdOfExceptionHandler: 0
51               Flags:           [ AsynchronousExceptionHandling, OptimizedForSpeed ]
52           - Kind:            S_REGREL32
53             RegRelativeSym:
54               Offset:          64
55               Type:            116
56               Register:        RSP
57               VarName:         x
58           - Kind:            S_BLOCK32
59             BlockSym:
60               CodeSize:        20
61               Offset:          15
62               BlockName:       ''
63           - Kind:            S_REGREL32
64             RegRelativeSym:
65               Offset:          32
66               Type:            116
67               Register:        RSP
68               VarName:         y
69           - Kind:            S_END
70             ScopeEndSym:
71           - Kind:            S_BLOCK32
72             BlockSym:
73               CodeSize:        20
74               Offset:          37
75               BlockName:       ''
76           - Kind:            S_REGREL32
77             RegRelativeSym:
78               Offset:          36
79               Type:            116
80               Register:        RSP
81               VarName:         w
82           - Kind:            S_END
83             ScopeEndSym:
84           - Kind:            S_PROC_ID_END
85             ScopeEndSym:
86       - !Lines
87         CodeSize:        62
88         Flags:           [  ]
89         RelocOffset:     0
90         RelocSegment:    0
91         Blocks:
92           - FileName:        'c:\src\llvm-project\build\b.c'
93             Lines:
94               - Offset:          0
95                 LineStart:       2
96                 IsStatement:     true
97                 EndDelta:        0
98               - Offset:          8
99                 LineStart:       3
100                 IsStatement:     true
101                 EndDelta:        0
102               - Offset:          15
103                 LineStart:       4
104                 IsStatement:     true
105                 EndDelta:        0
106               - Offset:          26
107                 LineStart:       5
108                 IsStatement:     true
109                 EndDelta:        0
110               - Offset:          35
111                 LineStart:       6
112                 IsStatement:     true
113                 EndDelta:        0
114               - Offset:          37
115                 LineStart:       7
116                 IsStatement:     true
117                 EndDelta:        0
118               - Offset:          48
119                 LineStart:       8
120                 IsStatement:     true
121                 EndDelta:        0
122               - Offset:          57
123                 LineStart:       10
124                 IsStatement:     true
125                 EndDelta:        0
126             Columns:
127       - !FileChecksums
128         Checksums:
129           - FileName:        'c:\src\llvm-project\build\b.c'
130             Kind:            MD5
131             Checksum:        8E8C92DB46478902EBEAEBFCFF15A6E0
132       - !StringTable
133         Strings:
134           - 'c:\src\llvm-project\build\b.c'
135       - !Symbols
136         Records:
137           - Kind:            S_BUILDINFO
138             BuildInfoSym:
139               BuildId:         4110
140     Relocations:
141       - VirtualAddress:  152
142         SymbolName:      f
143         Type:            IMAGE_REL_AMD64_SECREL
144       - VirtualAddress:  156
145         SymbolName:      f
146         Type:            IMAGE_REL_AMD64_SECTION
147       - VirtualAddress:  223
148         SymbolName:      f
149         Type:            IMAGE_REL_AMD64_SECREL
150       - VirtualAddress:  227
151         SymbolName:      f
152         Type:            IMAGE_REL_AMD64_SECTION
153       - VirtualAddress:  266
154         SymbolName:      f
155         Type:            IMAGE_REL_AMD64_SECREL
156       - VirtualAddress:  270
157         SymbolName:      f
158         Type:            IMAGE_REL_AMD64_SECTION
159       - VirtualAddress:  308
160         SymbolName:      f
161         Type:            IMAGE_REL_AMD64_SECREL
162       - VirtualAddress:  312
163         SymbolName:      f
164         Type:            IMAGE_REL_AMD64_SECTION
165   - Name:            '.debug$T'
166     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
167     Alignment:       1
168     Types:
169       - Kind:            LF_ARGLIST
170         ArgList:
171           ArgIndices:      [ 0 ]
172       - Kind:            LF_PROCEDURE
173         Procedure:
174           ReturnType:      3
175           CallConv:        NearC
176           Options:         [ None ]
177           ParameterCount:  0
178           ArgumentList:    4096
179       - Kind:            LF_POINTER
180         Pointer:
181           ReferentType:    4097
182           Attrs:           65548
183       - Kind:            LF_ARGLIST
184         ArgList:
185           ArgIndices:      [ 116 ]
186       - Kind:            LF_PROCEDURE
187         Procedure:
188           ReturnType:      3
189           CallConv:        NearC
190           Options:         [ None ]
191           ParameterCount:  1
192           ArgumentList:    4099
193       - Kind:            LF_FUNC_ID
194         FuncId:
195           ParentScope:     0
196           FunctionType:    4100
197           Name:            f
198       - Kind:            LF_FUNC_ID
199         FuncId:
200           ParentScope:     0
201           FunctionType:    4097
202           Name:            g
203       - Kind:            LF_STRING_ID
204         StringId:
205           Id:              0
206           String:          'C:\src\llvm-project\build'
207       - Kind:            LF_STRING_ID
208         StringId:
209           Id:              0
210           String:          'C:\PROGRA~2\MICROS~1.0\VC\Bin\amd64\cl.exe'
211       - Kind:            LF_STRING_ID
212         StringId:
213           Id:              0
214           String:          '-c -Z7 -MT -IC:\PROGRA~2\MICROS~1.0\VC\include -IC:\PROGRA~2\MICROS~1.0\VC\atlmfc\include -IC:\PROGRA~2\WI3CF2~1\10\include\10.0.14393.0\ucrt -IC:\PROGRA~2\WI3CF2~1\10\include\10.0.14393.0\shared -IC:\PROGRA~2\WI3CF2~1\10\include\10.0.14393.0\um'
215       - Kind:            LF_SUBSTR_LIST
216         StringList:
217           StringIndices:   [ 4105 ]
218       - Kind:            LF_STRING_ID
219         StringId:
220           Id:              4106
221           String:          ' -IC:\PROGRA~2\WI3CF2~1\10\include\10.0.14393.0\winrt -TC -X'
222       - Kind:            LF_STRING_ID
223         StringId:
224           Id:              0
225           String:          b.c
226       - Kind:            LF_STRING_ID
227         StringId:
228           Id:              0
229           String:          'C:\src\llvm-project\build\vc140.pdb'
230       - Kind:            LF_BUILDINFO
231         BuildInfo:
232           ArgIndices:      [ 4103, 4104, 4108, 4109, 4107 ]
233   - Name:            '.text$mn'
234     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
235     Alignment:       16
236     SectionData:     894C24084883EC38837C24400074168B44244083C003894424208B4C2420E800000000EB148B44244083C004894424248B4C2424E8000000004883C438C3
237     Relocations:
238       - VirtualAddress:  31
239         SymbolName:      g
240         Type:            IMAGE_REL_AMD64_REL32
241       - VirtualAddress:  53
242         SymbolName:      g
243         Type:            IMAGE_REL_AMD64_REL32
244   - Name:            .xdata
245     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
246     Alignment:       4
247     SectionData:     '0108010008620000'
248   - Name:            .pdata
249     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
250     Alignment:       4
251     SectionData:     '000000003E00000000000000'
252     Relocations:
253       - VirtualAddress:  0
254         SymbolName:      '$LN5'
255         Type:            IMAGE_REL_AMD64_ADDR32NB
256       - VirtualAddress:  4
257         SymbolName:      '$LN5'
258         Type:            IMAGE_REL_AMD64_ADDR32NB
259       - VirtualAddress:  8
260         SymbolName:      '$unwind$f'
261         Type:            IMAGE_REL_AMD64_ADDR32NB
262 symbols:
263   - Name:            .drectve
264     Value:           0
265     SectionNumber:   1
266     SimpleType:      IMAGE_SYM_TYPE_NULL
267     ComplexType:     IMAGE_SYM_DTYPE_NULL
268     StorageClass:    IMAGE_SYM_CLASS_STATIC
269     SectionDefinition:
270       Length:          47
271       NumberOfRelocations: 0
272       NumberOfLinenumbers: 0
273       CheckSum:        0
274       Number:          0
275   - Name:            '.debug$S'
276     Value:           0
277     SectionNumber:   2
278     SimpleType:      IMAGE_SYM_TYPE_NULL
279     ComplexType:     IMAGE_SYM_DTYPE_NULL
280     StorageClass:    IMAGE_SYM_CLASS_STATIC
281     SectionDefinition:
282       Length:          484
283       NumberOfRelocations: 8
284       NumberOfLinenumbers: 0
285       CheckSum:        0
286       Number:          0
287   - Name:            '.debug$T'
288     Value:           0
289     SectionNumber:   3
290     SimpleType:      IMAGE_SYM_TYPE_NULL
291     ComplexType:     IMAGE_SYM_DTYPE_NULL
292     StorageClass:    IMAGE_SYM_CLASS_STATIC
293     SectionDefinition:
294       Length:          616
295       NumberOfRelocations: 0
296       NumberOfLinenumbers: 0
297       CheckSum:        0
298       Number:          0
299   - Name:            '.text$mn'
300     Value:           0
301     SectionNumber:   4
302     SimpleType:      IMAGE_SYM_TYPE_NULL
303     ComplexType:     IMAGE_SYM_DTYPE_NULL
304     StorageClass:    IMAGE_SYM_CLASS_STATIC
305     SectionDefinition:
306       Length:          62
307       NumberOfRelocations: 2
308       NumberOfLinenumbers: 0
309       CheckSum:        3841032836
310       Number:          0
311   - Name:            g
312     Value:           0
313     SectionNumber:   0
314     SimpleType:      IMAGE_SYM_TYPE_NULL
315     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
316     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
317   - Name:            f
318     Value:           0
319     SectionNumber:   4
320     SimpleType:      IMAGE_SYM_TYPE_NULL
321     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
322     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
323   - Name:            '$LN5'
324     Value:           0
325     SectionNumber:   4
326     SimpleType:      IMAGE_SYM_TYPE_NULL
327     ComplexType:     IMAGE_SYM_DTYPE_NULL
328     StorageClass:    IMAGE_SYM_CLASS_LABEL
329   - Name:            .xdata
330     Value:           0
331     SectionNumber:   5
332     SimpleType:      IMAGE_SYM_TYPE_NULL
333     ComplexType:     IMAGE_SYM_DTYPE_NULL
334     StorageClass:    IMAGE_SYM_CLASS_STATIC
335     SectionDefinition:
336       Length:          8
337       NumberOfRelocations: 0
338       NumberOfLinenumbers: 0
339       CheckSum:        3137252093
340       Number:          0
341   - Name:            '$unwind$f'
342     Value:           0
343     SectionNumber:   5
344     SimpleType:      IMAGE_SYM_TYPE_NULL
345     ComplexType:     IMAGE_SYM_DTYPE_NULL
346     StorageClass:    IMAGE_SYM_CLASS_STATIC
347   - Name:            .pdata
348     Value:           0
349     SectionNumber:   6
350     SimpleType:      IMAGE_SYM_TYPE_NULL
351     ComplexType:     IMAGE_SYM_DTYPE_NULL
352     StorageClass:    IMAGE_SYM_CLASS_STATIC
353     SectionDefinition:
354       Length:          12
355       NumberOfRelocations: 3
356       NumberOfLinenumbers: 0
357       CheckSum:        2420588879
358       Number:          0
359   - Name:            '$pdata$f'
360     Value:           0
361     SectionNumber:   6
362     SimpleType:      IMAGE_SYM_TYPE_NULL
363     ComplexType:     IMAGE_SYM_DTYPE_NULL
364     StorageClass:    IMAGE_SYM_CLASS_STATIC