Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-objdump / MachO / exports-trie-lc.test
blob08ebaeebfaba459be88963e56e3c4619bffad217
1 # RUN: yaml2obj %s | llvm-objdump --macho --exports-trie - | FileCheck %s
3 # CHECK:      Exports trie:
4 # CHECK-NEXT: 0x100000000 __mh_execute_header
5 # CHECK-NEXT: 0x100003F98 _main
7 --- !mach-o
8 FileHeader:
9   magic:           0xFEEDFACF
10   cputype:         0x1000007
11   cpusubtype:      0x3
12   filetype:        0x2
13   ncmds:           15
14   sizeofcmds:      728
15   flags:           0x200085
16   reserved:        0x0
17 LoadCommands:
18   - cmd:             LC_SEGMENT_64
19     cmdsize:         72
20     segname:         __PAGEZERO
21     vmaddr:          0
22     vmsize:          4294967296
23     fileoff:         0
24     filesize:        0
25     maxprot:         0
26     initprot:        0
27     nsects:          0
28     flags:           0
29   - cmd:             LC_SEGMENT_64
30     cmdsize:         232
31     segname:         __TEXT
32     vmaddr:          4294967296
33     vmsize:          16384
34     fileoff:         0
35     filesize:        16384
36     maxprot:         5
37     initprot:        5
38     nsects:          2
39     flags:           0
40     Sections:
41       - sectname:        __text
42         segname:         __TEXT
43         addr:            0x100003FB0
44         size:            8
45         offset:          0x3FB0
46         align:           4
47         reloff:          0x0
48         nreloc:          0
49         flags:           0x80000400
50         reserved1:       0x0
51         reserved2:       0x0
52         reserved3:       0x0
53         content:         C30F1F0000000000
54       - sectname:        __unwind_info
55         segname:         __TEXT
56         addr:            0x100003FB8
57         size:            72
58         offset:          0x3FB8
59         align:           2
60         reloff:          0x0
61         nreloc:          0
62         flags:           0x0
63         reserved1:       0x0
64         reserved2:       0x0
65         reserved3:       0x0
66         content:         010000001C000000000000001C000000000000001C00000002000000B03F00003400000034000000B93F00000000000034000000030000000C000100100001000000000000000000
67   - cmd:             LC_SEGMENT_64
68     cmdsize:         72
69     segname:         __LINKEDIT
70     vmaddr:          4294983680
71     vmsize:          16384
72     fileoff:         16384
73     filesize:        176
74     maxprot:         1
75     initprot:        1
76     nsects:          0
77     flags:           0
78   - cmd:             LC_DYLD_CHAINED_FIXUPS
79     cmdsize:         16
80     dataoff:         16384
81     datasize:        56
82   - cmd:             LC_DYLD_EXPORTS_TRIE
83     cmdsize:         16
84     dataoff:         16440
85     datasize:        48
86   - cmd:             LC_SYMTAB
87     cmdsize:         24
88     symoff:          16504
89     nsyms:           2
90     stroff:          16536
91     strsize:         32
92   - cmd:             LC_DYSYMTAB
93     cmdsize:         80
94     ilocalsym:       0
95     nlocalsym:       0
96     iextdefsym:      0
97     nextdefsym:      2
98     iundefsym:       2
99     nundefsym:       0
100     tocoff:          0
101     ntoc:            0
102     modtaboff:       0
103     nmodtab:         0
104     extrefsymoff:    0
105     nextrefsyms:     0
106     indirectsymoff:  0
107     nindirectsyms:   0
108     extreloff:       0
109     nextrel:         0
110     locreloff:       0
111     nlocrel:         0
112   - cmd:             LC_LOAD_DYLINKER
113     cmdsize:         32
114     name:            12
115     Content:         '/usr/lib/dyld'
116     ZeroPadBytes:    7
117   - cmd:             LC_UUID
118     cmdsize:         24
119     uuid:            362D6303-E0AC-3074-B083-CF48B87DB35D
120   - cmd:             LC_BUILD_VERSION
121     cmdsize:         32
122     platform:        1
123     minos:           786432
124     sdk:             787200
125     ntools:          1
126     Tools:
127       - tool:            3
128         version:         50069504
129   - cmd:             LC_SOURCE_VERSION
130     cmdsize:         16
131     version:         0
132   - cmd:             LC_MAIN
133     cmdsize:         24
134     entryoff:        16304
135     stacksize:       0
136   - cmd:             LC_LOAD_DYLIB
137     cmdsize:         56
138     dylib:
139       name:            24
140       timestamp:       2
141       current_version: 85943299
142       compatibility_version: 65536
143     Content:         '/usr/lib/libSystem.B.dylib'
144     ZeroPadBytes:    6
145   - cmd:             LC_FUNCTION_STARTS
146     cmdsize:         16
147     dataoff:         16488
148     datasize:        8
149   - cmd:             LC_DATA_IN_CODE
150     cmdsize:         16
151     dataoff:         0
152     datasize:        0
153 LinkEditData:
154   ExportTrie:
155       TerminalSize:    0
156       NodeOffset:      0
157       Name:            ''
158       Flags:           0x0
159       Address:         0x0
160       Other:           0x0
161       ImportName:      ''
162       Children:
163         - TerminalSize:    0
164           NodeOffset:      5
165           Name:            _
166           Flags:           0x0
167           Address:         0x0
168           Other:           0x0
169           ImportName:      ''
170           Children:
171             - TerminalSize:    2
172               NodeOffset:      33
173               Name:            _mh_execute_header
174               Flags:           0x0
175               Address:         0x0
176               Other:           0x0
177               ImportName:      ''
178             - TerminalSize:    3
179               NodeOffset:      37
180               Name:            main
181               Flags:           0x0
182               Address:         0x3F98
183               Other:           0x0
184               ImportName:      ''
185   NameList:
186     - n_strx:          2
187       n_type:          0xF
188       n_sect:          1
189       n_desc:          16
190       n_value:         4294967296
191     - n_strx:          22
192       n_type:          0xF
193       n_sect:          1
194       n_desc:          0
195       n_value:         4294983600
196   StringTable:
197     - ' '
198     - __mh_execute_header
199     - _main
200     - ''
201     - ''
202     - ''
203     - ''
204   FunctionStarts:  [ 0x3FB0 ]