[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / ObjectYAML / MachO / DWARF-debug_str.yaml
blob84c5e22d25544459fe00652f744b15fe2d820cd1
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
3 --- !mach-o
4 FileHeader:      
5   magic:           0xFEEDFACF
6   cputype:         0x01000007
7   cpusubtype:      0x00000003
8   filetype:        0x0000000A
9   ncmds:           6
10   sizeofcmds:      1376
11   flags:           0x00000000
12   reserved:        0x00000000
13 LoadCommands:    
14   - cmd:             LC_UUID
15     cmdsize:         24
16     uuid:            9304404B-E522-3BBA-A861-AF5938908725
17   - cmd:             LC_SYMTAB
18     cmdsize:         24
19     symoff:          4096
20     nsyms:           2
21     stroff:          4128
22     strsize:         28
23   - cmd:             LC_SEGMENT_64
24     cmdsize:         72
25     segname:         __PAGEZERO
26     vmaddr:          0
27     vmsize:          4294967296
28     fileoff:         0
29     filesize:        0
30     maxprot:         0
31     initprot:        0
32     nsects:          0
33     flags:           0
34   - cmd:             LC_SEGMENT_64
35     cmdsize:         232
36     segname:         __TEXT
37     vmaddr:          4294967296
38     vmsize:          4096
39     fileoff:         0
40     filesize:        0
41     maxprot:         7
42     initprot:        5
43     nsects:          2
44     flags:           0
45     Sections:        
46       - sectname:        __text
47         segname:         __TEXT
48         addr:            0x0000000100000FA0
49         size:            22
50         offset:          0x00000000
51         align:           4
52         reloff:          0x00000000
53         nreloc:          0
54         flags:           0x80000400
55         reserved1:       0x00000000
56         reserved2:       0x00000000
57         reserved3:       0x00000000
58       - sectname:        __unwind_info
59         segname:         __TEXT
60         addr:            0x0000000100000FB8
61         size:            72
62         offset:          0x00000000
63         align:           2
64         reloff:          0x00000000
65         nreloc:          0
66         flags:           0x00000000
67         reserved1:       0x00000000
68         reserved2:       0x00000000
69         reserved3:       0x00000000
70   - cmd:             LC_SEGMENT_64
71     cmdsize:         72
72     segname:         __LINKEDIT
73     vmaddr:          4294971392
74     vmsize:          4096
75     fileoff:         4096
76     filesize:        60
77     maxprot:         7
78     initprot:        1
79     nsects:          0
80     flags:           0
81   - cmd:             LC_SEGMENT_64
82     cmdsize:         952
83     segname:         __DWARF
84     vmaddr:          4294975488
85     vmsize:          4096
86     fileoff:         8192
87     filesize:        765
88     maxprot:         7
89     initprot:        3
90     nsects:          11
91     flags:           0
92     Sections:        
93       - sectname:        __debug_line
94         segname:         __DWARF
95         addr:            0x0000000100002000
96         size:            70
97         offset:          0x00002000
98         align:           0
99         reloff:          0x00000000
100         nreloc:          0
101         flags:           0x00000000
102         reserved1:       0x00000000
103         reserved2:       0x00000000
104         reserved3:       0x00000000
105       - sectname:        __debug_pubnames
106         segname:         __DWARF
107         addr:            0x0000000100002046
108         size:            27
109         offset:          0x00002046
110         align:           0
111         reloff:          0x00000000
112         nreloc:          0
113         flags:           0x00000000
114         reserved1:       0x00000000
115         reserved2:       0x00000000
116         reserved3:       0x00000000
117       - sectname:        __debug_pubtypes
118         segname:         __DWARF
119         addr:            0x0000000100002061
120         size:            35
121         offset:          0x00002061
122         align:           0
123         reloff:          0x00000000
124         nreloc:          0
125         flags:           0x00000000
126         reserved1:       0x00000000
127         reserved2:       0x00000000
128         reserved3:       0x00000000
129       - sectname:        __debug_aranges
130         segname:         __DWARF
131         addr:            0x0000000100002084
132         size:            48
133         offset:          0x00002084
134         align:           0
135         reloff:          0x00000000
136         nreloc:          0
137         flags:           0x00000000
138         reserved1:       0x00000000
139         reserved2:       0x00000000
140         reserved3:       0x00000000
141       - sectname:        __debug_info
142         segname:         __DWARF
143         addr:            0x00000001000020B4
144         size:            121
145         offset:          0x000020B4
146         align:           0
147         reloff:          0x00000000
148         nreloc:          0
149         flags:           0x00000000
150         reserved1:       0x00000000
151         reserved2:       0x00000000
152         reserved3:       0x00000000
153       - sectname:        __debug_abbrev
154         segname:         __DWARF
155         addr:            0x000000010000212D
156         size:            76
157         offset:          0x0000212D
158         align:           0
159         reloff:          0x00000000
160         nreloc:          0
161         flags:           0x00000000
162         reserved1:       0x00000000
163         reserved2:       0x00000000
164         reserved3:       0x00000000
165       - sectname:        __debug_str
166         segname:         __DWARF
167         addr:            0x0000000100002179
168         size:            142
169         offset:          0x00002179
170         align:           0
171         reloff:          0x00000000
172         nreloc:          0
173         flags:           0x00000000
174         reserved1:       0x00000000
175         reserved2:       0x00000000
176         reserved3:       0x00000000
177       - sectname:        __apple_names
178         segname:         __DWARF
179         addr:            0x0000000100002207
180         size:            60
181         offset:          0x00002207
182         align:           0
183         reloff:          0x00000000
184         nreloc:          0
185         flags:           0x00000000
186         reserved1:       0x00000000
187         reserved2:       0x00000000
188         reserved3:       0x00000000
189       - sectname:        __apple_namespac
190         segname:         __DWARF
191         addr:            0x0000000100002243
192         size:            36
193         offset:          0x00002243
194         align:           0
195         reloff:          0x00000000
196         nreloc:          0
197         flags:           0x00000000
198         reserved1:       0x00000000
199         reserved2:       0x00000000
200         reserved3:       0x00000000
201       - sectname:        __apple_types
202         segname:         __DWARF
203         addr:            0x0000000100002267
204         size:            114
205         offset:          0x00002267
206         align:           0
207         reloff:          0x00000000
208         nreloc:          0
209         flags:           0x00000000
210         reserved1:       0x00000000
211         reserved2:       0x00000000
212         reserved3:       0x00000000
213       - sectname:        __apple_objc
214         segname:         __DWARF
215         addr:            0x00000001000022D9
216         size:            36
217         offset:          0x000022D9
218         align:           0
219         reloff:          0x00000000
220         nreloc:          0
221         flags:           0x00000000
222         reserved1:       0x00000000
223         reserved2:       0x00000000
224         reserved3:       0x00000000
225 LinkEditData:    
226   NameList:        
227     - n_strx:          2
228       n_type:          0x0F
229       n_sect:          1
230       n_desc:          16
231       n_value:         4294967296
232     - n_strx:          22
233       n_type:          0x0F
234       n_sect:          1
235       n_desc:          0
236       n_value:         4294971296
237   StringTable:     
238     - ''
239     - ''
240     - __mh_execute_header
241     - _main
242 DWARF:           
243   debug_str:    
244     - ''
245     - 'clang version 4.0.0 (trunk 288677) (llvm/trunk 288676)'
246     - hello_world.c
247     - /Users/cbieneman/dev/open-source/llvm-build-rel
248     - main
249     - argc
250     - argv
251     - int
252     - char
255 #CHECK: DWARF:           
256 #CHECK:   debug_str:    
257 #CHECK:     - ''
258 #CHECK:     - 'clang version 4.0.0 (trunk 288677) (llvm/trunk 288676)'
259 #CHECK:     - hello_world.c
260 #CHECK:     - '/Users/cbieneman/dev/open-source/llvm-build-rel'
261 #CHECK:     - main
262 #CHECK:     - argc
263 #CHECK:     - argv
264 #CHECK:     - int
265 #CHECK:     - char