Lines Matching full:io

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