Lines Matching refs:IO
25 void MappingTraits<DWARFYAML::Data>::mapping(IO &IO, DWARFYAML::Data &DWARF) { in mapping() argument
26 auto oldContext = IO.getContext(); in mapping()
27 IO.setContext(&DWARF); in mapping()
28 IO.mapOptional("debug_str", DWARF.DebugStrings); in mapping()
29 IO.mapOptional("debug_abbrev", DWARF.AbbrevDecls); in mapping()
30 if (!DWARF.ARanges.empty() || !IO.outputting()) in mapping()
31 IO.mapOptional("debug_aranges", DWARF.ARanges); in mapping()
32 if (!DWARF.PubNames.Entries.empty() || !IO.outputting()) in mapping()
33 IO.mapOptional("debug_pubnames", DWARF.PubNames); in mapping()
34 if (!DWARF.PubTypes.Entries.empty() || !IO.outputting()) in mapping()
35 IO.mapOptional("debug_pubtypes", DWARF.PubTypes); in mapping()
36 if (!DWARF.GNUPubNames.Entries.empty() || !IO.outputting()) in mapping()
37 IO.mapOptional("debug_gnu_pubnames", DWARF.GNUPubNames); in mapping()
38 if (!DWARF.GNUPubTypes.Entries.empty() || !IO.outputting()) in mapping()
39 IO.mapOptional("debug_gnu_pubtypes", DWARF.GNUPubTypes); in mapping()
40 IO.mapOptional("debug_info", DWARF.CompileUnits); in mapping()
41 IO.mapOptional("debug_line", DWARF.DebugLines); in mapping()
42 IO.setContext(&oldContext); in mapping()
45 void MappingTraits<DWARFYAML::Abbrev>::mapping(IO &IO, in mapping() argument
47 IO.mapRequired("Code", Abbrev.Code); in mapping()
48 IO.mapRequired("Tag", Abbrev.Tag); in mapping()
49 IO.mapRequired("Children", Abbrev.Children); in mapping()
50 IO.mapRequired("Attributes", Abbrev.Attributes); in mapping()
54 IO &IO, DWARFYAML::AttributeAbbrev &AttAbbrev) { in mapping() argument
55 IO.mapRequired("Attribute", AttAbbrev.Attribute); in mapping()
56 IO.mapRequired("Form", AttAbbrev.Form); in mapping()
58 IO.mapRequired("Value", AttAbbrev.Value); in mapping()
62 IO &IO, DWARFYAML::ARangeDescriptor &Descriptor) { in mapping() argument
63 IO.mapRequired("Address", Descriptor.Address); in mapping()
64 IO.mapRequired("Length", Descriptor.Length); in mapping()
67 void MappingTraits<DWARFYAML::ARange>::mapping(IO &IO, in mapping() argument
69 IO.mapRequired("Length", Range.Length); in mapping()
70 IO.mapRequired("Version", Range.Version); in mapping()
71 IO.mapRequired("CuOffset", Range.CuOffset); in mapping()
72 IO.mapRequired("AddrSize", Range.AddrSize); in mapping()
73 IO.mapRequired("SegSize", Range.SegSize); in mapping()
74 IO.mapRequired("Descriptors", Range.Descriptors); in mapping()
77 void MappingTraits<DWARFYAML::PubEntry>::mapping(IO &IO, in mapping() argument
79 IO.mapRequired("DieOffset", Entry.DieOffset); in mapping()
80 if (reinterpret_cast<DWARFYAML::PubSection *>(IO.getContext())->IsGNUStyle) in mapping()
81 IO.mapRequired("Descriptor", Entry.Descriptor); in mapping()
82 IO.mapRequired("Name", Entry.Name); in mapping()
86 IO &IO, DWARFYAML::PubSection &Section) { in mapping() argument
87 auto OldContext = IO.getContext(); in mapping()
88 IO.setContext(&Section); in mapping()
90 IO.mapRequired("Length", Section.Length); in mapping()
91 IO.mapRequired("Version", Section.Version); in mapping()
92 IO.mapRequired("UnitOffset", Section.UnitOffset); in mapping()
93 IO.mapRequired("UnitSize", Section.UnitSize); in mapping()
94 IO.mapRequired("Entries", Section.Entries); in mapping()
96 IO.setContext(OldContext); in mapping()
99 void MappingTraits<DWARFYAML::Unit>::mapping(IO &IO, DWARFYAML::Unit &Unit) { in mapping() argument
100 IO.mapRequired("Length", Unit.Length); in mapping()
101 IO.mapRequired("Version", Unit.Version); in mapping()
103 IO.mapRequired("UnitType", Unit.Type); in mapping()
104 IO.mapRequired("AbbrOffset", Unit.AbbrOffset); in mapping()
105 IO.mapRequired("AddrSize", Unit.AddrSize); in mapping()
106 IO.mapOptional("Entries", Unit.Entries); in mapping()
109 void MappingTraits<DWARFYAML::Entry>::mapping(IO &IO, DWARFYAML::Entry &Entry) { in mapping() argument
110 IO.mapRequired("AbbrCode", Entry.AbbrCode); in mapping()
111 IO.mapRequired("Values", Entry.Values); in mapping()
115 IO &IO, DWARFYAML::FormValue &FormValue) { in mapping() argument
116 IO.mapOptional("Value", FormValue.Value); in mapping()
117 if (!FormValue.CStr.empty() || !IO.outputting()) in mapping()
118 IO.mapOptional("CStr", FormValue.CStr); in mapping()
119 if (!FormValue.BlockData.empty() || !IO.outputting()) in mapping()
120 IO.mapOptional("BlockData", FormValue.BlockData); in mapping()
123 void MappingTraits<DWARFYAML::File>::mapping(IO &IO, DWARFYAML::File &File) { in mapping() argument
124 IO.mapRequired("Name", File.Name); in mapping()
125 IO.mapRequired("DirIdx", File.DirIdx); in mapping()
126 IO.mapRequired("ModTime", File.ModTime); in mapping()
127 IO.mapRequired("Length", File.Length); in mapping()
131 IO &IO, DWARFYAML::LineTableOpcode &LineTableOpcode) { in mapping() argument
132 IO.mapRequired("Opcode", LineTableOpcode.Opcode); in mapping()
134 IO.mapRequired("ExtLen", LineTableOpcode.ExtLen); in mapping()
135 IO.mapRequired("SubOpcode", LineTableOpcode.SubOpcode); in mapping()
138 if (!LineTableOpcode.UnknownOpcodeData.empty() || !IO.outputting()) in mapping()
139 IO.mapOptional("UnknownOpcodeData", LineTableOpcode.UnknownOpcodeData); in mapping()
140 if (!LineTableOpcode.UnknownOpcodeData.empty() || !IO.outputting()) in mapping()
141 IO.mapOptional("StandardOpcodeData", LineTableOpcode.StandardOpcodeData); in mapping()
142 if (!LineTableOpcode.FileEntry.Name.empty() || !IO.outputting()) in mapping()
143 IO.mapOptional("FileEntry", LineTableOpcode.FileEntry); in mapping()
144 if (LineTableOpcode.Opcode == dwarf::DW_LNS_advance_line || !IO.outputting()) in mapping()
145 IO.mapOptional("SData", LineTableOpcode.SData); in mapping()
146 IO.mapOptional("Data", LineTableOpcode.Data); in mapping()
150 IO &IO, DWARFYAML::LineTable &LineTable) { in mapping() argument
151 IO.mapRequired("Length", LineTable.Length); in mapping()
152 IO.mapRequired("Version", LineTable.Version); in mapping()
153 IO.mapRequired("PrologueLength", LineTable.PrologueLength); in mapping()
154 IO.mapRequired("MinInstLength", LineTable.MinInstLength); in mapping()
156 IO.mapRequired("MaxOpsPerInst", LineTable.MaxOpsPerInst); in mapping()
157 IO.mapRequired("DefaultIsStmt", LineTable.DefaultIsStmt); in mapping()
158 IO.mapRequired("LineBase", LineTable.LineBase); in mapping()
159 IO.mapRequired("LineRange", LineTable.LineRange); in mapping()
160 IO.mapRequired("OpcodeBase", LineTable.OpcodeBase); in mapping()
161 IO.mapRequired("StandardOpcodeLengths", LineTable.StandardOpcodeLengths); in mapping()
162 IO.mapRequired("IncludeDirs", LineTable.IncludeDirs); in mapping()
163 IO.mapRequired("Files", LineTable.Files); in mapping()
164 IO.mapRequired("Opcodes", LineTable.Opcodes); in mapping()
168 IO &IO, DWARFYAML::InitialLength &InitialLength) { in mapping() argument
169 IO.mapRequired("TotalLength", InitialLength.TotalLength); in mapping()
171 IO.mapRequired("TotalLength64", InitialLength.TotalLength64); in mapping()