Lines Matching refs:IO

91 void MappingTraits<DWARFYAML::Data>::mapping(IO &IO, DWARFYAML::Data &DWARF) {  in mapping()  argument
92 void *OldContext = IO.getContext(); in mapping()
94 IO.setContext(&DWARFCtx); in mapping()
95 IO.mapOptional("debug_str", DWARF.DebugStrings); in mapping()
96 IO.mapOptional("debug_abbrev", DWARF.DebugAbbrev); in mapping()
97 IO.mapOptional("debug_aranges", DWARF.DebugAranges); in mapping()
98 IO.mapOptional("debug_ranges", DWARF.DebugRanges); in mapping()
99 IO.mapOptional("debug_pubnames", DWARF.PubNames); in mapping()
100 IO.mapOptional("debug_pubtypes", DWARF.PubTypes); in mapping()
102 IO.mapOptional("debug_gnu_pubnames", DWARF.GNUPubNames); in mapping()
103 IO.mapOptional("debug_gnu_pubtypes", DWARF.GNUPubTypes); in mapping()
104 IO.mapOptional("debug_info", DWARF.CompileUnits); in mapping()
105 IO.mapOptional("debug_line", DWARF.DebugLines); in mapping()
106 IO.mapOptional("debug_addr", DWARF.DebugAddr); in mapping()
107 IO.mapOptional("debug_str_offsets", DWARF.DebugStrOffsets); in mapping()
108 IO.mapOptional("debug_rnglists", DWARF.DebugRnglists); in mapping()
109 IO.mapOptional("debug_loclists", DWARF.DebugLoclists); in mapping()
110 IO.mapOptional("debug_names", DWARF.DebugNames); in mapping()
111 IO.setContext(OldContext); in mapping()
115 IO &IO, DWARFYAML::AbbrevTable &AbbrevTable) { in mapping() argument
116 IO.mapOptional("ID", AbbrevTable.ID); in mapping()
117 IO.mapOptional("Table", AbbrevTable.Table); in mapping()
120 void MappingTraits<DWARFYAML::Abbrev>::mapping(IO &IO, in mapping() argument
122 IO.mapOptional("Code", Abbrev.Code); in mapping()
123 IO.mapRequired("Tag", Abbrev.Tag); in mapping()
124 IO.mapRequired("Children", Abbrev.Children); in mapping()
125 IO.mapOptional("Attributes", Abbrev.Attributes); in mapping()
128 void MappingTraits<DWARFYAML::IdxForm>::mapping(IO &IO, in mapping() argument
130 IO.mapRequired("Idx", IdxForm.Idx); in mapping()
131 IO.mapRequired("Form", IdxForm.Form); in mapping()
135 IO &IO, DWARFYAML::DebugNameAbbreviation &DebugNameAbbreviation) { in mapping() argument
136 IO.mapRequired("Code", DebugNameAbbreviation.Code); in mapping()
137 IO.mapRequired("Tag", DebugNameAbbreviation.Tag); in mapping()
138 IO.mapRequired("Indices", DebugNameAbbreviation.Indices); in mapping()
142 IO &IO, DWARFYAML::DebugNameEntry &DebugNameEntry) { in mapping() argument
143 IO.mapRequired("Name", DebugNameEntry.NameStrp); in mapping()
144 IO.mapRequired("Code", DebugNameEntry.Code); in mapping()
145 IO.mapOptional("Values", DebugNameEntry.Values); in mapping()
149 IO &IO, DWARFYAML::DebugNamesSection &DebugNames) { in mapping() argument
150 IO.mapRequired("Abbreviations", DebugNames.Abbrevs); in mapping()
151 IO.mapRequired("Entries", DebugNames.Entries); in mapping()
155 IO &IO, DWARFYAML::AttributeAbbrev &AttAbbrev) { in mapping() argument
156 IO.mapRequired("Attribute", AttAbbrev.Attribute); in mapping()
157 IO.mapRequired("Form", AttAbbrev.Form); in mapping()
159 IO.mapRequired("Value", AttAbbrev.Value); in mapping()
163 IO &IO, DWARFYAML::ARangeDescriptor &Descriptor) { in mapping() argument
164 IO.mapRequired("Address", Descriptor.Address); in mapping()
165 IO.mapRequired("Length", Descriptor.Length); in mapping()
168 void MappingTraits<DWARFYAML::ARange>::mapping(IO &IO, in mapping() argument
170 IO.mapOptional("Format", ARange.Format, dwarf::DWARF32); in mapping()
171 IO.mapOptional("Length", ARange.Length); in mapping()
172 IO.mapRequired("Version", ARange.Version); in mapping()
173 IO.mapRequired("CuOffset", ARange.CuOffset); in mapping()
174 IO.mapOptional("AddressSize", ARange.AddrSize); in mapping()
175 IO.mapOptional("SegmentSelectorSize", ARange.SegSize, 0); in mapping()
176 IO.mapOptional("Descriptors", ARange.Descriptors); in mapping()
180 IO &IO, DWARFYAML::RangeEntry &Descriptor) { in mapping() argument
181 IO.mapRequired("LowOffset", Descriptor.LowOffset); in mapping()
182 IO.mapRequired("HighOffset", Descriptor.HighOffset); in mapping()
185 void MappingTraits<DWARFYAML::Ranges>::mapping(IO &IO, in mapping() argument
187 IO.mapOptional("Offset", DebugRanges.Offset); in mapping()
188 IO.mapOptional("AddrSize", DebugRanges.AddrSize); in mapping()
189 IO.mapRequired("Entries", DebugRanges.Entries); in mapping()
192 void MappingTraits<DWARFYAML::PubEntry>::mapping(IO &IO, in mapping() argument
194 IO.mapRequired("DieOffset", Entry.DieOffset); in mapping()
195 if (static_cast<DWARFYAML::DWARFContext *>(IO.getContext())->IsGNUPubSec) in mapping()
196 IO.mapRequired("Descriptor", Entry.Descriptor); in mapping()
197 IO.mapRequired("Name", Entry.Name); in mapping()
201 IO &IO, DWARFYAML::PubSection &Section) { in mapping() argument
202 IO.mapOptional("Format", Section.Format, dwarf::DWARF32); in mapping()
203 IO.mapRequired("Length", Section.Length); in mapping()
204 IO.mapRequired("Version", Section.Version); in mapping()
205 IO.mapRequired("UnitOffset", Section.UnitOffset); in mapping()
206 IO.mapRequired("UnitSize", Section.UnitSize); in mapping()
207 IO.mapRequired("Entries", Section.Entries); in mapping()
210 void MappingTraits<DWARFYAML::Unit>::mapping(IO &IO, DWARFYAML::Unit &Unit) { in mapping() argument
211 IO.mapOptional("Format", Unit.Format, dwarf::DWARF32); in mapping()
212 IO.mapOptional("Length", Unit.Length); in mapping()
213 IO.mapRequired("Version", Unit.Version); in mapping()
215 IO.mapRequired("UnitType", Unit.Type); in mapping()
216 IO.mapOptional("AbbrevTableID", Unit.AbbrevTableID); in mapping()
217 IO.mapOptional("AbbrOffset", Unit.AbbrOffset); in mapping()
218 IO.mapOptional("AddrSize", Unit.AddrSize); in mapping()
219 IO.mapOptional("Entries", Unit.Entries); in mapping()
222 void MappingTraits<DWARFYAML::Entry>::mapping(IO &IO, DWARFYAML::Entry &Entry) { in mapping() argument
223 IO.mapRequired("AbbrCode", Entry.AbbrCode); in mapping()
224 IO.mapOptional("Values", Entry.Values); in mapping()
228 IO &IO, DWARFYAML::FormValue &FormValue) { in mapping() argument
229 IO.mapOptional("Value", FormValue.Value); in mapping()
230 if (!FormValue.CStr.empty() || !IO.outputting()) in mapping()
231 IO.mapOptional("CStr", FormValue.CStr); in mapping()
232 if (!FormValue.BlockData.empty() || !IO.outputting()) in mapping()
233 IO.mapOptional("BlockData", FormValue.BlockData); in mapping()
236 void MappingTraits<DWARFYAML::File>::mapping(IO &IO, DWARFYAML::File &File) { in mapping() argument
237 IO.mapRequired("Name", File.Name); in mapping()
238 IO.mapRequired("DirIdx", File.DirIdx); in mapping()
239 IO.mapRequired("ModTime", File.ModTime); in mapping()
240 IO.mapRequired("Length", File.Length); in mapping()
244 IO &IO, DWARFYAML::LineTableOpcode &LineTableOpcode) { in mapping() argument
245 IO.mapRequired("Opcode", LineTableOpcode.Opcode); in mapping()
247 IO.mapOptional("ExtLen", LineTableOpcode.ExtLen); in mapping()
248 IO.mapRequired("SubOpcode", LineTableOpcode.SubOpcode); in mapping()
251 if (!LineTableOpcode.UnknownOpcodeData.empty() || !IO.outputting()) in mapping()
252 IO.mapOptional("UnknownOpcodeData", LineTableOpcode.UnknownOpcodeData); in mapping()
253 if (!LineTableOpcode.UnknownOpcodeData.empty() || !IO.outputting()) in mapping()
254 IO.mapOptional("StandardOpcodeData", LineTableOpcode.StandardOpcodeData); in mapping()
255 if (!LineTableOpcode.FileEntry.Name.empty() || !IO.outputting()) in mapping()
256 IO.mapOptional("FileEntry", LineTableOpcode.FileEntry); in mapping()
257 if (LineTableOpcode.Opcode == dwarf::DW_LNS_advance_line || !IO.outputting()) in mapping()
258 IO.mapOptional("SData", LineTableOpcode.SData); in mapping()
259 IO.mapOptional("Data", LineTableOpcode.Data); in mapping()
263 IO &IO, DWARFYAML::LineTable &LineTable) { in mapping() argument
264 IO.mapOptional("Format", LineTable.Format, dwarf::DWARF32); in mapping()
265 IO.mapOptional("Length", LineTable.Length); in mapping()
266 IO.mapRequired("Version", LineTable.Version); in mapping()
267 IO.mapOptional("PrologueLength", LineTable.PrologueLength); in mapping()
268 IO.mapRequired("MinInstLength", LineTable.MinInstLength); in mapping()
270 IO.mapRequired("MaxOpsPerInst", LineTable.MaxOpsPerInst); in mapping()
271 IO.mapRequired("DefaultIsStmt", LineTable.DefaultIsStmt); in mapping()
272 IO.mapRequired("LineBase", LineTable.LineBase); in mapping()
273 IO.mapRequired("LineRange", LineTable.LineRange); in mapping()
274 IO.mapOptional("OpcodeBase", LineTable.OpcodeBase); in mapping()
275 IO.mapOptional("StandardOpcodeLengths", LineTable.StandardOpcodeLengths); in mapping()
276 IO.mapOptional("IncludeDirs", LineTable.IncludeDirs); in mapping()
277 IO.mapOptional("Files", LineTable.Files); in mapping()
278 IO.mapOptional("Opcodes", LineTable.Opcodes); in mapping()
282 IO &IO, DWARFYAML::SegAddrPair &SegAddrPair) { in mapping() argument
283 IO.mapOptional("Segment", SegAddrPair.Segment, 0); in mapping()
284 IO.mapOptional("Address", SegAddrPair.Address, 0); in mapping()
288 IO &IO, DWARFYAML::AddrTableEntry &AddrTable) { in mapping() argument
289 IO.mapOptional("Format", AddrTable.Format, dwarf::DWARF32); in mapping()
290 IO.mapOptional("Length", AddrTable.Length); in mapping()
291 IO.mapRequired("Version", AddrTable.Version); in mapping()
292 IO.mapOptional("AddressSize", AddrTable.AddrSize); in mapping()
293 IO.mapOptional("SegmentSelectorSize", AddrTable.SegSelectorSize, 0); in mapping()
294 IO.mapOptional("Entries", AddrTable.SegAddrPairs); in mapping()
298 IO &IO, DWARFYAML::StringOffsetsTable &StrOffsetsTable) { in mapping() argument
299 IO.mapOptional("Format", StrOffsetsTable.Format, dwarf::DWARF32); in mapping()
300 IO.mapOptional("Length", StrOffsetsTable.Length); in mapping()
301 IO.mapOptional("Version", StrOffsetsTable.Version, 5); in mapping()
302 IO.mapOptional("Padding", StrOffsetsTable.Padding, 0); in mapping()
303 IO.mapOptional("Offsets", StrOffsetsTable.Offsets); in mapping()
307 IO &IO, DWARFYAML::DWARFOperation &DWARFOperation) { in mapping() argument
308 IO.mapRequired("Operator", DWARFOperation.Operator); in mapping()
309 IO.mapOptional("Values", DWARFOperation.Values); in mapping()
313 IO &IO, DWARFYAML::RnglistEntry &RnglistEntry) { in mapping() argument
314 IO.mapRequired("Operator", RnglistEntry.Operator); in mapping()
315 IO.mapOptional("Values", RnglistEntry.Values); in mapping()
319 IO &IO, DWARFYAML::LoclistEntry &LoclistEntry) { in mapping() argument
320 IO.mapRequired("Operator", LoclistEntry.Operator); in mapping()
321 IO.mapOptional("Values", LoclistEntry.Values); in mapping()
322 IO.mapOptional("DescriptionsLength", LoclistEntry.DescriptionsLength); in mapping()
323 IO.mapOptional("Descriptions", LoclistEntry.Descriptions); in mapping()
328 IO &IO, DWARFYAML::ListEntries<EntryType> &ListEntries) { in mapping() argument
329 IO.mapOptional("Entries", ListEntries.Entries); in mapping()
330 IO.mapOptional("Content", ListEntries.Content); in mapping()
335 IO &IO, DWARFYAML::ListEntries<EntryType> &ListEntries) { in validate() argument
343 IO &IO, DWARFYAML::ListTable<EntryType> &ListTable) { in mapping() argument
344 IO.mapOptional("Format", ListTable.Format, dwarf::DWARF32); in mapping()
345 IO.mapOptional("Length", ListTable.Length); in mapping()
346 IO.mapOptional("Version", ListTable.Version, 5); in mapping()
347 IO.mapOptional("AddressSize", ListTable.AddrSize); in mapping()
348 IO.mapOptional("SegmentSelectorSize", ListTable.SegSelectorSize, 0); in mapping()
349 IO.mapOptional("OffsetEntryCount", ListTable.OffsetEntryCount); in mapping()
350 IO.mapOptional("Offsets", ListTable.Offsets); in mapping()
351 IO.mapOptional("Lists", ListTable.Lists); in mapping()