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