Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / Inputs / pdb_lines_1_relative.yaml
blob9a6b192e1d0d25e0a1f3b0e50a473b559ee98ee0
1 --- !COFF
2 header:
3   Machine:         IMAGE_FILE_MACHINE_AMD64
4   Characteristics: [  ]
5 sections:
6   - Name:            .text
7     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
8     Alignment:       16
9     SectionData:     4883EC28C744242400000000E800000000B82A0000004883C428C3
10     Relocations:
11       - VirtualAddress:  13
12         SymbolName:      foo
13         Type:            IMAGE_REL_AMD64_REL32
14   - Name:            .data
15     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
16     Alignment:       4
17     SectionData:     ''
18   - Name:            .bss
19     Characteristics: [ IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
20     Alignment:       4
21     SectionData:     ''
22     SizeOfRawData:   0
23   - Name:            .xdata
24     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
25     Alignment:       4
26     SectionData:     '0104010004420000'
27   - Name:            .text
28     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
29     Alignment:       16
30     SectionData:     4883EC28E800000000904883C428C3
31     Relocations:
32       - VirtualAddress:  5
33         SymbolName:      bar
34         Type:            IMAGE_REL_AMD64_REL32
35   - Name:            .drectve
36     Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
37     Alignment:       1
38     SectionData:     202F44454641554C544C49423A6C6962636D742E6C6962202F44454641554C544C49423A6F6C646E616D65732E6C6962
39   - Name:            '.debug$S'
40     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
41     Alignment:       4
42     Subsections:
43       - !Symbols
44         Records:
45           - Kind:            S_COMPILE3
46             Compile3Sym:
47               Flags:           [  ]
48               Machine:         X64
49               FrontendMajor:   11
50               FrontendMinor:   0
51               FrontendBuild:   0
52               FrontendQFE:     0
53               BackendMajor:    11000
54               BackendMinor:    0
55               BackendBuild:    0
56               BackendQFE:      0
57               Version:         'clang version 11.0.0 (https://github.com/llvm/llvm-project.git 77dad72eae974338ddc13d74783c012ccbb8c5ac)'
58       - !Symbols
59         Records:
60           - Kind:            S_GPROC32_ID
61             ProcSym:
62               CodeSize:        27
63               DbgStart:        0
64               DbgEnd:          0
65               FunctionType:    4098
66               Flags:           [  ]
67               DisplayName:     main
68           - Kind:            S_FRAMEPROC
69             FrameProcSym:
70               TotalFrameBytes: 40
71               PaddingFrameBytes: 0
72               OffsetToPadding: 0
73               BytesOfCalleeSavedRegisters: 0
74               OffsetOfExceptionHandler: 0
75               SectionIdOfExceptionHandler: 0
76               Flags:           [  ]
77           - Kind:            S_PROC_ID_END
78             ScopeEndSym:     {}
79       - !Lines
80         CodeSize:        27
81         Flags:           [  ]
82         RelocOffset:     0
83         RelocSegment:    0
84         Blocks:
85           - FileName:        '.\pdb_lines_1.c'
86             Lines:
87               - Offset:          0
88                 LineStart:       2
89                 IsStatement:     false
90                 EndDelta:        0
91               - Offset:          12
92                 LineStart:       3
93                 IsStatement:     false
94                 EndDelta:        0
95               - Offset:          17
96                 LineStart:       4
97                 IsStatement:     false
98                 EndDelta:        0
99             Columns:         []
100       - !FileChecksums
101         Checksums:
102           - FileName:        '.\pdb_lines_1.c'
103             Kind:            MD5
104             Checksum:        9A64DD4298487888B1D99F825D520C5E
105           - FileName:        '.\foo.h'
106             Kind:            MD5
107             Checksum:        A9D05E6DC184DE20A57797E24F8B0E97
108       - !StringTable
109         Strings:
110           - '.\pdb_lines_1.c'
111           - '.\foo.h'
112           - ''
113           - ''
114           - ''
115       - !Symbols
116         Records:
117           - Kind:            S_BUILDINFO
118             BuildInfoSym:
119               BuildId:         4105
120     Relocations:
121       - VirtualAddress:  184
122         SymbolName:      main
123         Type:            IMAGE_REL_AMD64_SECREL
124       - VirtualAddress:  188
125         SymbolName:      main
126         Type:            IMAGE_REL_AMD64_SECTION
127       - VirtualAddress:  240
128         SymbolName:      main
129         Type:            IMAGE_REL_AMD64_SECREL
130       - VirtualAddress:  244
131         SymbolName:      main
132         Type:            IMAGE_REL_AMD64_SECTION
133   - Name:            '.debug$T'
134     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
135     Alignment:       4
136     Types:
137       - Kind:            LF_ARGLIST
138         ArgList:
139           ArgIndices:      [  ]
140       - Kind:            LF_PROCEDURE
141         Procedure:
142           ReturnType:      116
143           CallConv:        NearC
144           Options:         [ None ]
145           ParameterCount:  0
146           ArgumentList:    4096
147       - Kind:            LF_FUNC_ID
148         FuncId:
149           ParentScope:     0
150           FunctionType:    4097
151           Name:            main
152       - Kind:            LF_PROCEDURE
153         Procedure:
154           ReturnType:      3
155           CallConv:        NearC
156           Options:         [ None ]
157           ParameterCount:  0
158           ArgumentList:    4096
159       - Kind:            LF_FUNC_ID
160         FuncId:
161           ParentScope:     0
162           FunctionType:    4099
163           Name:            foo
164       - Kind:            LF_STRING_ID
165         StringId:
166           Id:              0
167           String:          .
168       - Kind:            LF_STRING_ID
169         StringId:
170           Id:              0
171           String:          pdb_lines_1.c
172       - Kind:            LF_STRING_ID
173         StringId:
174           Id:              0
175           String:          'buildninjaRel\bin\clang-cl.exe'
176       - Kind:            LF_STRING_ID
177         StringId:
178           Id:              0
179           String:          '"-cc1" "-triple" "x86_64-pc-windows-msvc19.26.28806" "-emit-obj" "-mrelax-all" "-mincremental-linker-compatible" "-disable-free" "-main-file-name" "pdb_lines_1.c" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mframe-pointer=none" "-relaxed-aliasing" "-fmath-errno" "-fno-rounding-math" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-mllvm" "-x86-asm-syntax=intel" "-D_MT" "-flto-visibility-public-std" "--dependent-lib=libcmt" "--dependent-lib=oldnames" "-stack-protector" "2" "-fms-volatile" "-fdiagnostics-format" "msvc" "-gcodeview" "-debug-info-kind=limited" "-resource-dir" "D:\\llvm-project\\buildninjaRel\\lib\\clang\\11.0.0" "-internal-isystem" "D:\\llvm-project\\buildninjaRel\\lib\\clang\\11.0.0\\include" "-internal-isystem" "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.26.28801\\ATLMFC\\include" "-internal-isystem" "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.26.28801\\include" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\shared" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\um" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\winrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\cppwinrt" "-fdebug-compilation-dir" "." "-ferror-limit" "19" "-fmessage-length=146" "-fno-use-cxa-atexit" "-fms-extensions" "-fms-compatibility" "-fms-compatibility-version=19.26.28806" "-fdelayed-template-parsing" "-fcolor-diagnostics" "-faddrsig" "-x" "c"'
180       - Kind:            LF_BUILDINFO
181         BuildInfo:
182           ArgIndices:      [ 4101, 4103, 4102, 0, 4104 ]
183   - Name:            .pdata
184     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
185     Alignment:       4
186     SectionData:     000000001B00000000000000
187     Relocations:
188       - VirtualAddress:  0
189         SymbolName:      main
190         Type:            IMAGE_REL_AMD64_ADDR32NB
191       - VirtualAddress:  4
192         SymbolName:      main
193         Type:            IMAGE_REL_AMD64_ADDR32NB
194       - VirtualAddress:  8
195         SymbolTableIndex: 6
196         Type:            IMAGE_REL_AMD64_ADDR32NB
197   - Name:            .llvm_addrsig
198     Characteristics: [ IMAGE_SCN_LNK_REMOVE ]
199     Alignment:       1
200     SectionData:     0A1D
201   - Name:            .xdata
202     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ ]
203     Alignment:       4
204     SectionData:     '0104010004420000'
205   - Name:            '.debug$S'
206     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
207     Alignment:       4
208     Subsections:
209       - !Symbols
210         Records:
211           - Kind:            S_GPROC32_ID
212             ProcSym:
213               CodeSize:        15
214               DbgStart:        0
215               DbgEnd:          0
216               FunctionType:    4100
217               Flags:           [  ]
218               DisplayName:     foo
219           - Kind:            S_FRAMEPROC
220             FrameProcSym:
221               TotalFrameBytes: 40
222               PaddingFrameBytes: 0
223               OffsetToPadding: 0
224               BytesOfCalleeSavedRegisters: 0
225               OffsetOfExceptionHandler: 0
226               SectionIdOfExceptionHandler: 0
227               Flags:           [  ]
228           - Kind:            S_PROC_ID_END
229             ScopeEndSym:     {}
230       - !Lines
231         CodeSize:        15
232         Flags:           [  ]
233         RelocOffset:     0
234         RelocSegment:    0
235         Blocks:
236           - FileName:        '.\foo.h'
237             Lines:
238               - Offset:          0
239                 LineStart:       2
240                 IsStatement:     false
241                 EndDelta:        0
242               - Offset:          4
243                 LineStart:       3
244                 IsStatement:     false
245                 EndDelta:        0
246               - Offset:          9
247                 LineStart:       4
248                 IsStatement:     false
249                 EndDelta:        0
250             Columns:         []
251     Relocations:
252       - VirtualAddress:  44
253         SymbolName:      foo
254         Type:            IMAGE_REL_AMD64_SECREL
255       - VirtualAddress:  48
256         SymbolName:      foo
257         Type:            IMAGE_REL_AMD64_SECTION
258       - VirtualAddress:  100
259         SymbolName:      foo
260         Type:            IMAGE_REL_AMD64_SECREL
261       - VirtualAddress:  104
262         SymbolName:      foo
263         Type:            IMAGE_REL_AMD64_SECTION
264   - Name:            .pdata
265     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ ]
266     Alignment:       4
267     SectionData:     000000000F00000000000000
268     Relocations:
269       - VirtualAddress:  0
270         SymbolName:      foo
271         Type:            IMAGE_REL_AMD64_ADDR32NB
272       - VirtualAddress:  4
273         SymbolName:      foo
274         Type:            IMAGE_REL_AMD64_ADDR32NB
275       - VirtualAddress:  8
276         SymbolTableIndex: 11
277         Type:            IMAGE_REL_AMD64_ADDR32NB
278 symbols:
279   - Name:            .text
280     Value:           0
281     SectionNumber:   1
282     SimpleType:      IMAGE_SYM_TYPE_NULL
283     ComplexType:     IMAGE_SYM_DTYPE_NULL
284     StorageClass:    IMAGE_SYM_CLASS_STATIC
285     SectionDefinition:
286       Length:          27
287       NumberOfRelocations: 1
288       NumberOfLinenumbers: 0
289       CheckSum:        3051916600
290       Number:          1
291   - Name:            .data
292     Value:           0
293     SectionNumber:   2
294     SimpleType:      IMAGE_SYM_TYPE_NULL
295     ComplexType:     IMAGE_SYM_DTYPE_NULL
296     StorageClass:    IMAGE_SYM_CLASS_STATIC
297     SectionDefinition:
298       Length:          0
299       NumberOfRelocations: 0
300       NumberOfLinenumbers: 0
301       CheckSum:        0
302       Number:          2
303   - Name:            .bss
304     Value:           0
305     SectionNumber:   3
306     SimpleType:      IMAGE_SYM_TYPE_NULL
307     ComplexType:     IMAGE_SYM_DTYPE_NULL
308     StorageClass:    IMAGE_SYM_CLASS_STATIC
309     SectionDefinition:
310       Length:          0
311       NumberOfRelocations: 0
312       NumberOfLinenumbers: 0
313       CheckSum:        0
314       Number:          3
315   - Name:            .xdata
316     Value:           0
317     SectionNumber:   4
318     SimpleType:      IMAGE_SYM_TYPE_NULL
319     ComplexType:     IMAGE_SYM_DTYPE_NULL
320     StorageClass:    IMAGE_SYM_CLASS_STATIC
321     SectionDefinition:
322       Length:          8
323       NumberOfRelocations: 0
324       NumberOfLinenumbers: 0
325       CheckSum:        264583633
326       Number:          4
327   - Name:            .text
328     Value:           0
329     SectionNumber:   5
330     SimpleType:      IMAGE_SYM_TYPE_NULL
331     ComplexType:     IMAGE_SYM_DTYPE_NULL
332     StorageClass:    IMAGE_SYM_CLASS_STATIC
333     SectionDefinition:
334       Length:          15
335       NumberOfRelocations: 1
336       NumberOfLinenumbers: 0
337       CheckSum:        236440503
338       Number:          5
339       Selection:       IMAGE_COMDAT_SELECT_ANY
340   - Name:            foo
341     Value:           0
342     SectionNumber:   5
343     SimpleType:      IMAGE_SYM_TYPE_NULL
344     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
345     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
346   - Name:            .xdata
347     Value:           0
348     SectionNumber:   11
349     SimpleType:      IMAGE_SYM_TYPE_NULL
350     ComplexType:     IMAGE_SYM_DTYPE_NULL
351     StorageClass:    IMAGE_SYM_CLASS_STATIC
352     SectionDefinition:
353       Length:          8
354       NumberOfRelocations: 0
355       NumberOfLinenumbers: 0
356       CheckSum:        264583633
357       Number:          5
358       Selection:       IMAGE_COMDAT_SELECT_ASSOCIATIVE
359   - Name:            .drectve
360     Value:           0
361     SectionNumber:   6
362     SimpleType:      IMAGE_SYM_TYPE_NULL
363     ComplexType:     IMAGE_SYM_DTYPE_NULL
364     StorageClass:    IMAGE_SYM_CLASS_STATIC
365     SectionDefinition:
366       Length:          48
367       NumberOfRelocations: 0
368       NumberOfLinenumbers: 0
369       CheckSum:        149686238
370       Number:          6
371   - Name:            '.debug$S'
372     Value:           0
373     SectionNumber:   7
374     SimpleType:      IMAGE_SYM_TYPE_NULL
375     ComplexType:     IMAGE_SYM_DTYPE_NULL
376     StorageClass:    IMAGE_SYM_CLASS_STATIC
377     SectionDefinition:
378       Length:          396
379       NumberOfRelocations: 4
380       NumberOfLinenumbers: 0
381       CheckSum:        3390249978
382       Number:          7
383   - Name:            '.debug$S'
384     Value:           0
385     SectionNumber:   12
386     SimpleType:      IMAGE_SYM_TYPE_NULL
387     ComplexType:     IMAGE_SYM_DTYPE_NULL
388     StorageClass:    IMAGE_SYM_CLASS_STATIC
389     SectionDefinition:
390       Length:          148
391       NumberOfRelocations: 4
392       NumberOfLinenumbers: 0
393       CheckSum:        1236081121
394       Number:          5
395       Selection:       IMAGE_COMDAT_SELECT_ASSOCIATIVE
396   - Name:            '.debug$T'
397     Value:           0
398     SectionNumber:   8
399     SimpleType:      IMAGE_SYM_TYPE_NULL
400     ComplexType:     IMAGE_SYM_DTYPE_NULL
401     StorageClass:    IMAGE_SYM_CLASS_STATIC
402     SectionDefinition:
403       Length:          2028
404       NumberOfRelocations: 0
405       NumberOfLinenumbers: 0
406       CheckSum:        2043733667
407       Number:          8
408   - Name:            .pdata
409     Value:           0
410     SectionNumber:   9
411     SimpleType:      IMAGE_SYM_TYPE_NULL
412     ComplexType:     IMAGE_SYM_DTYPE_NULL
413     StorageClass:    IMAGE_SYM_CLASS_STATIC
414     SectionDefinition:
415       Length:          12
416       NumberOfRelocations: 3
417       NumberOfLinenumbers: 0
418       CheckSum:        567356797
419       Number:          9
420   - Name:            .pdata
421     Value:           0
422     SectionNumber:   13
423     SimpleType:      IMAGE_SYM_TYPE_NULL
424     ComplexType:     IMAGE_SYM_DTYPE_NULL
425     StorageClass:    IMAGE_SYM_CLASS_STATIC
426     SectionDefinition:
427       Length:          12
428       NumberOfRelocations: 3
429       NumberOfLinenumbers: 0
430       CheckSum:        3642757804
431       Number:          5
432       Selection:       IMAGE_COMDAT_SELECT_ASSOCIATIVE
433   - Name:            .llvm_addrsig
434     Value:           0
435     SectionNumber:   10
436     SimpleType:      IMAGE_SYM_TYPE_NULL
437     ComplexType:     IMAGE_SYM_DTYPE_NULL
438     StorageClass:    IMAGE_SYM_CLASS_STATIC
439     SectionDefinition:
440       Length:          2
441       NumberOfRelocations: 0
442       NumberOfLinenumbers: 0
443       CheckSum:        2582217811
444       Number:          10
445   - Name:            '@feat.00'
446     Value:           0
447     SectionNumber:   -1
448     SimpleType:      IMAGE_SYM_TYPE_NULL
449     ComplexType:     IMAGE_SYM_DTYPE_NULL
450     StorageClass:    IMAGE_SYM_CLASS_STATIC
451   - Name:            main
452     Value:           0
453     SectionNumber:   1
454     SimpleType:      IMAGE_SYM_TYPE_NULL
455     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
456     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
457   - Name:            bar
458     Value:           0
459     SectionNumber:   0
460     SimpleType:      IMAGE_SYM_TYPE_NULL
461     ComplexType:     IMAGE_SYM_DTYPE_NULL
462     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
463   - Name:            .file
464     Value:           0
465     SectionNumber:   -2
466     SimpleType:      IMAGE_SYM_TYPE_NULL
467     ComplexType:     IMAGE_SYM_DTYPE_NULL
468     StorageClass:    IMAGE_SYM_CLASS_FILE
469     File:            pdb_lines_1.c