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