Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / Inputs / pdb-scopes-a.yaml
blobe422a6241f27cdb2dd4804937ff1d3c7fc16bc2e
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\a.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:        5
38               DbgStart:        4
39               DbgEnd:          4
40               FunctionType:    4099
41               Flags:           [  ]
42               DisplayName:     g
43           - Kind:            S_FRAMEPROC
44             FrameProcSym:
45               TotalFrameBytes: 0
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:          8
55               Type:            116
56               Register:        RSP
57               VarName:         x
58           - Kind:            S_PROC_ID_END
59             ScopeEndSym:
60       - !Lines
61         CodeSize:        5
62         Flags:           [  ]
63         RelocOffset:     0
64         RelocSegment:    0
65         Blocks:
66           - FileName:        'c:\src\llvm-project\build\a.c'
67             Lines:
68               - Offset:          0
69                 LineStart:       1
70                 IsStatement:     true
71                 EndDelta:        0
72             Columns:
73       - !Symbols
74         Records:
75           - Kind:            S_GPROC32_ID
76             ProcSym:
77               CodeSize:        58
78               DbgStart:        8
79               DbgEnd:          53
80               FunctionType:    4101
81               Flags:           [  ]
82               DisplayName:     main
83           - Kind:            S_FRAMEPROC
84             FrameProcSym:
85               TotalFrameBytes: 56
86               PaddingFrameBytes: 0
87               OffsetToPadding: 0
88               BytesOfCalleeSavedRegisters: 0
89               OffsetOfExceptionHandler: 0
90               SectionIdOfExceptionHandler: 0
91               Flags:           [ AsynchronousExceptionHandling, OptimizedForSpeed ]
92           - Kind:            S_REGREL32
93             RegRelativeSym:
94               Offset:          64
95               Type:            116
96               Register:        RSP
97               VarName:         argc
98           - Kind:            S_BLOCK32
99             BlockSym:
100               CodeSize:        17
101               Offset:          15
102               BlockName:       ''
103           - Kind:            S_REGREL32
104             RegRelativeSym:
105               Offset:          32
106               Type:            116
107               Register:        RSP
108               VarName:         x
109           - Kind:            S_END
110             ScopeEndSym:
111           - Kind:            S_BLOCK32
112             BlockSym:
113               CodeSize:        17
114               Offset:          34
115               BlockName:       ''
116           - Kind:            S_REGREL32
117             RegRelativeSym:
118               Offset:          36
119               Type:            116
120               Register:        RSP
121               VarName:         y
122           - Kind:            S_END
123             ScopeEndSym:
124           - Kind:            S_PROC_ID_END
125             ScopeEndSym:
126       - !Lines
127         CodeSize:        58
128         Flags:           [  ]
129         RelocOffset:     0
130         RelocSegment:    0
131         Blocks:
132           - FileName:        'c:\src\llvm-project\build\a.c'
133             Lines:
134               - Offset:          0
135                 LineStart:       3
136                 IsStatement:     true
137                 EndDelta:        0
138               - Offset:          8
139                 LineStart:       4
140                 IsStatement:     true
141                 EndDelta:        0
142               - Offset:          15
143                 LineStart:       5
144                 IsStatement:     true
145                 EndDelta:        0
146               - Offset:          23
147                 LineStart:       6
148                 IsStatement:     true
149                 EndDelta:        0
150               - Offset:          32
151                 LineStart:       7
152                 IsStatement:     true
153                 EndDelta:        0
154               - Offset:          34
155                 LineStart:       8
156                 IsStatement:     true
157                 EndDelta:        0
158               - Offset:          42
159                 LineStart:       9
160                 IsStatement:     true
161                 EndDelta:        0
162               - Offset:          51
163                 LineStart:       11
164                 IsStatement:     true
165                 EndDelta:        0
166             Columns:
167       - !FileChecksums
168         Checksums:
169           - FileName:        'c:\src\llvm-project\build\a.c'
170             Kind:            MD5
171             Checksum:        7FA72225C3F5630316383BD8BCC3EF72
172       - !StringTable
173         Strings:
174           - 'c:\src\llvm-project\build\a.c'
175       - !Symbols
176         Records:
177           - Kind:            S_BUILDINFO
178             BuildInfoSym:
179               BuildId:         4110
180     Relocations:
181       - VirtualAddress:  152
182         SymbolName:      g
183         Type:            IMAGE_REL_AMD64_SECREL
184       - VirtualAddress:  156
185         SymbolName:      g
186         Type:            IMAGE_REL_AMD64_SECTION
187       - VirtualAddress:  220
188         SymbolName:      g
189         Type:            IMAGE_REL_AMD64_SECREL
190       - VirtualAddress:  224
191         SymbolName:      g
192         Type:            IMAGE_REL_AMD64_SECTION
193       - VirtualAddress:  292
194         SymbolName:      main
195         Type:            IMAGE_REL_AMD64_SECREL
196       - VirtualAddress:  296
197         SymbolName:      main
198         Type:            IMAGE_REL_AMD64_SECTION
199       - VirtualAddress:  369
200         SymbolName:      main
201         Type:            IMAGE_REL_AMD64_SECREL
202       - VirtualAddress:  373
203         SymbolName:      main
204         Type:            IMAGE_REL_AMD64_SECTION
205       - VirtualAddress:  412
206         SymbolName:      main
207         Type:            IMAGE_REL_AMD64_SECREL
208       - VirtualAddress:  416
209         SymbolName:      main
210         Type:            IMAGE_REL_AMD64_SECTION
211       - VirtualAddress:  452
212         SymbolName:      main
213         Type:            IMAGE_REL_AMD64_SECREL
214       - VirtualAddress:  456
215         SymbolName:      main
216         Type:            IMAGE_REL_AMD64_SECTION
217   - Name:            '.debug$T'
218     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
219     Alignment:       1
220     Types:
221       - Kind:            LF_ARGLIST
222         ArgList:
223           ArgIndices:      [ 116 ]
224       - Kind:            LF_PROCEDURE
225         Procedure:
226           ReturnType:      3
227           CallConv:        NearC
228           Options:         [ None ]
229           ParameterCount:  1
230           ArgumentList:    4096
231       - Kind:            LF_POINTER
232         Pointer:
233           ReferentType:    4097
234           Attrs:           65548
235       - Kind:            LF_FUNC_ID
236         FuncId:
237           ParentScope:     0
238           FunctionType:    4097
239           Name:            g
240       - Kind:            LF_PROCEDURE
241         Procedure:
242           ReturnType:      116
243           CallConv:        NearC
244           Options:         [ None ]
245           ParameterCount:  1
246           ArgumentList:    4096
247       - Kind:            LF_FUNC_ID
248         FuncId:
249           ParentScope:     0
250           FunctionType:    4100
251           Name:            main
252       - Kind:            LF_FUNC_ID
253         FuncId:
254           ParentScope:     0
255           FunctionType:    4097
256           Name:            f
257       - Kind:            LF_STRING_ID
258         StringId:
259           Id:              0
260           String:          'C:\src\llvm-project\build'
261       - Kind:            LF_STRING_ID
262         StringId:
263           Id:              0
264           String:          'C:\PROGRA~2\MICROS~1.0\VC\Bin\amd64\cl.exe'
265       - Kind:            LF_STRING_ID
266         StringId:
267           Id:              0
268           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'
269       - Kind:            LF_SUBSTR_LIST
270         StringList:
271           StringIndices:   [ 4105 ]
272       - Kind:            LF_STRING_ID
273         StringId:
274           Id:              4106
275           String:          ' -IC:\PROGRA~2\WI3CF2~1\10\include\10.0.14393.0\winrt -TC -X'
276       - Kind:            LF_STRING_ID
277         StringId:
278           Id:              0
279           String:          a.c
280       - Kind:            LF_STRING_ID
281         StringId:
282           Id:              0
283           String:          'C:\src\llvm-project\build\vc140.pdb'
284       - Kind:            LF_BUILDINFO
285         BuildInfo:
286           ArgIndices:      [ 4103, 4104, 4108, 4109, 4107 ]
287   - Name:            '.text$mn'
288     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
289     Alignment:       16
290     SectionData:     894C2408C3CCCCCCCCCCCCCCCCCCCCCC894C24084883EC38837C2440007413C74424202A0000008B4C2420E800000000EB11C74424240D0000008B4C2424E80000000033C04883C438C3
291     Relocations:
292       - VirtualAddress:  44
293         SymbolName:      f
294         Type:            IMAGE_REL_AMD64_REL32
295       - VirtualAddress:  63
296         SymbolName:      f
297         Type:            IMAGE_REL_AMD64_REL32
298   - Name:            .xdata
299     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
300     Alignment:       4
301     SectionData:     '0108010008620000'
302   - Name:            .pdata
303     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
304     Alignment:       4
305     SectionData:     000000003A00000000000000
306     Relocations:
307       - VirtualAddress:  0
308         SymbolName:      '$LN5'
309         Type:            IMAGE_REL_AMD64_ADDR32NB
310       - VirtualAddress:  4
311         SymbolName:      '$LN5'
312         Type:            IMAGE_REL_AMD64_ADDR32NB
313       - VirtualAddress:  8
314         SymbolName:      '$unwind$main'
315         Type:            IMAGE_REL_AMD64_ADDR32NB
316 symbols:
317   - Name:            .drectve
318     Value:           0
319     SectionNumber:   1
320     SimpleType:      IMAGE_SYM_TYPE_NULL
321     ComplexType:     IMAGE_SYM_DTYPE_NULL
322     StorageClass:    IMAGE_SYM_CLASS_STATIC
323     SectionDefinition:
324       Length:          47
325       NumberOfRelocations: 0
326       NumberOfLinenumbers: 0
327       CheckSum:        0
328       Number:          0
329   - Name:            '.debug$S'
330     Value:           0
331     SectionNumber:   2
332     SimpleType:      IMAGE_SYM_TYPE_NULL
333     ComplexType:     IMAGE_SYM_DTYPE_NULL
334     StorageClass:    IMAGE_SYM_CLASS_STATIC
335     SectionDefinition:
336       Length:          628
337       NumberOfRelocations: 12
338       NumberOfLinenumbers: 0
339       CheckSum:        0
340       Number:          0
341   - Name:            '.debug$T'
342     Value:           0
343     SectionNumber:   3
344     SimpleType:      IMAGE_SYM_TYPE_NULL
345     ComplexType:     IMAGE_SYM_DTYPE_NULL
346     StorageClass:    IMAGE_SYM_CLASS_STATIC
347     SectionDefinition:
348       Length:          624
349       NumberOfRelocations: 0
350       NumberOfLinenumbers: 0
351       CheckSum:        0
352       Number:          0
353   - Name:            '.text$mn'
354     Value:           0
355     SectionNumber:   4
356     SimpleType:      IMAGE_SYM_TYPE_NULL
357     ComplexType:     IMAGE_SYM_DTYPE_NULL
358     StorageClass:    IMAGE_SYM_CLASS_STATIC
359     SectionDefinition:
360       Length:          74
361       NumberOfRelocations: 2
362       NumberOfLinenumbers: 0
363       CheckSum:        2120072435
364       Number:          0
365   - Name:            g
366     Value:           0
367     SectionNumber:   4
368     SimpleType:      IMAGE_SYM_TYPE_NULL
369     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
370     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
371   - Name:            f
372     Value:           0
373     SectionNumber:   0
374     SimpleType:      IMAGE_SYM_TYPE_NULL
375     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
376     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
377   - Name:            main
378     Value:           16
379     SectionNumber:   4
380     SimpleType:      IMAGE_SYM_TYPE_NULL
381     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
382     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
383   - Name:            '$LN5'
384     Value:           16
385     SectionNumber:   4
386     SimpleType:      IMAGE_SYM_TYPE_NULL
387     ComplexType:     IMAGE_SYM_DTYPE_NULL
388     StorageClass:    IMAGE_SYM_CLASS_LABEL
389   - Name:            .xdata
390     Value:           0
391     SectionNumber:   5
392     SimpleType:      IMAGE_SYM_TYPE_NULL
393     ComplexType:     IMAGE_SYM_DTYPE_NULL
394     StorageClass:    IMAGE_SYM_CLASS_STATIC
395     SectionDefinition:
396       Length:          8
397       NumberOfRelocations: 0
398       NumberOfLinenumbers: 0
399       CheckSum:        3137252093
400       Number:          0
401   - Name:            '$unwind$main'
402     Value:           0
403     SectionNumber:   5
404     SimpleType:      IMAGE_SYM_TYPE_NULL
405     ComplexType:     IMAGE_SYM_DTYPE_NULL
406     StorageClass:    IMAGE_SYM_CLASS_STATIC
407   - Name:            .pdata
408     Value:           0
409     SectionNumber:   6
410     SimpleType:      IMAGE_SYM_TYPE_NULL
411     ComplexType:     IMAGE_SYM_DTYPE_NULL
412     StorageClass:    IMAGE_SYM_CLASS_STATIC
413     SectionDefinition:
414       Length:          12
415       NumberOfRelocations: 3
416       NumberOfLinenumbers: 0
417       CheckSum:        336416693
418       Number:          0
419   - Name:            '$pdata$main'
420     Value:           0
421     SectionNumber:   6
422     SimpleType:      IMAGE_SYM_TYPE_NULL
423     ComplexType:     IMAGE_SYM_DTYPE_NULL
424     StorageClass:    IMAGE_SYM_CLASS_STATIC