Lines Matching refs:DI
88 Error DWARFYAML::emitDebugStr(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugStr() argument
89 for (StringRef Str : *DI.DebugStrings) { in emitDebugStr()
132 Error DWARFYAML::emitDebugAbbrev(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugAbbrev() argument
133 for (uint64_t I = 0; I < DI.DebugAbbrev.size(); ++I) { in emitDebugAbbrev()
134 StringRef AbbrevTableContent = DI.getAbbrevTableContentByIndex(I); in emitDebugAbbrev()
141 Error DWARFYAML::emitDebugAranges(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugAranges() argument
142 assert(DI.DebugAranges && "unexpected emitDebugAranges() call"); in emitDebugAranges()
143 for (const auto &Range : *DI.DebugAranges) { in emitDebugAranges()
148 AddrSize = DI.Is64BitAddrSize ? 8 : 4; in emitDebugAranges()
168 writeInitialLength(Range.Format, Length, OS, DI.IsLittleEndian); in emitDebugAranges()
169 writeInteger((uint16_t)Range.Version, OS, DI.IsLittleEndian); in emitDebugAranges()
170 writeDWARFOffset(Range.CuOffset, Range.Format, OS, DI.IsLittleEndian); in emitDebugAranges()
171 writeInteger((uint8_t)AddrSize, OS, DI.IsLittleEndian); in emitDebugAranges()
172 writeInteger((uint8_t)Range.SegSize, OS, DI.IsLittleEndian); in emitDebugAranges()
177 OS, DI.IsLittleEndian)) in emitDebugAranges()
182 DI.IsLittleEndian)); in emitDebugAranges()
190 Error DWARFYAML::emitDebugRanges(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugRanges() argument
193 for (const auto &DebugRanges : *DI.DebugRanges) { in emitDebugRanges()
209 AddrSize = DI.Is64BitAddrSize ? 8 : 4; in emitDebugRanges()
212 DI.IsLittleEndian)) in emitDebugRanges()
218 DI.IsLittleEndian)); in emitDebugRanges()
243 Error DWARFYAML::emitDebugPubnames(raw_ostream &OS, const Data &DI) { in emitDebugPubnames() argument
244 assert(DI.PubNames && "unexpected emitDebugPubnames() call"); in emitDebugPubnames()
245 return emitPubSection(OS, *DI.PubNames, DI.IsLittleEndian); in emitDebugPubnames()
248 Error DWARFYAML::emitDebugPubtypes(raw_ostream &OS, const Data &DI) { in emitDebugPubtypes() argument
249 assert(DI.PubTypes && "unexpected emitDebugPubtypes() call"); in emitDebugPubtypes()
250 return emitPubSection(OS, *DI.PubTypes, DI.IsLittleEndian); in emitDebugPubtypes()
253 Error DWARFYAML::emitDebugGNUPubnames(raw_ostream &OS, const Data &DI) { in emitDebugGNUPubnames() argument
254 assert(DI.GNUPubNames && "unexpected emitDebugGNUPubnames() call"); in emitDebugGNUPubnames()
255 return emitPubSection(OS, *DI.GNUPubNames, DI.IsLittleEndian, in emitDebugGNUPubnames()
259 Error DWARFYAML::emitDebugGNUPubtypes(raw_ostream &OS, const Data &DI) { in emitDebugGNUPubtypes() argument
260 assert(DI.GNUPubTypes && "unexpected emitDebugGNUPubtypes() call"); in emitDebugGNUPubtypes()
261 return emitPubSection(OS, *DI.GNUPubTypes, DI.IsLittleEndian, in emitDebugGNUPubtypes()
265 static Expected<uint64_t> writeDIE(const DWARFYAML::Data &DI, uint64_t CUIndex, in writeDIE() argument
277 DI.getAbbrevTableInfoByID(AbbrevTableID); in writeDIE()
285 DI.DebugAbbrev[AbbrevTableInfoOrErr->Index].Table); in writeDIE()
407 Error DWARFYAML::emitDebugInfo(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugInfo() argument
408 for (uint64_t I = 0; I < DI.CompileUnits.size(); ++I) { in emitDebugInfo()
409 const DWARFYAML::Unit &Unit = DI.CompileUnits[I]; in emitDebugInfo()
414 AddrSize = DI.Is64BitAddrSize ? 8 : 4; in emitDebugInfo()
430 writeDIE(DI, I, AbbrevTableID, Params, Entry, EntryBufferOS, in emitDebugInfo()
431 DI.IsLittleEndian)) in emitDebugInfo()
442 writeInitialLength(Unit.Format, Length, OS, DI.IsLittleEndian); in emitDebugInfo()
443 writeInteger((uint16_t)Unit.Version, OS, DI.IsLittleEndian); in emitDebugInfo()
450 DI.getAbbrevTableInfoByID(AbbrevTableID)) { in emitDebugInfo()
461 writeInteger((uint8_t)Unit.Type, OS, DI.IsLittleEndian); in emitDebugInfo()
462 writeInteger((uint8_t)AddrSize, OS, DI.IsLittleEndian); in emitDebugInfo()
463 writeDWARFOffset(AbbrevTableOffset, Unit.Format, OS, DI.IsLittleEndian); in emitDebugInfo()
465 writeDWARFOffset(AbbrevTableOffset, Unit.Format, OS, DI.IsLittleEndian); in emitDebugInfo()
466 writeInteger((uint8_t)AddrSize, OS, DI.IsLittleEndian); in emitDebugInfo()
570 Error DWARFYAML::emitDebugLine(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugLine() argument
571 for (const DWARFYAML::LineTable &LineTable : DI.DebugLines) { in emitDebugLine()
577 writeInteger(LineTable.MinInstLength, BufferOS, DI.IsLittleEndian); in emitDebugLine()
580 writeInteger(LineTable.MaxOpsPerInst, BufferOS, DI.IsLittleEndian); in emitDebugLine()
581 writeInteger(LineTable.DefaultIsStmt, BufferOS, DI.IsLittleEndian); in emitDebugLine()
582 writeInteger(LineTable.LineBase, BufferOS, DI.IsLittleEndian); in emitDebugLine()
583 writeInteger(LineTable.LineRange, BufferOS, DI.IsLittleEndian); in emitDebugLine()
591 writeInteger(OpcodeBase, BufferOS, DI.IsLittleEndian); in emitDebugLine()
593 writeInteger(OpcodeLength, BufferOS, DI.IsLittleEndian); in emitDebugLine()
609 writeLineTableOpcode(Op, OpcodeBase, DI.Is64BitAddrSize ? 8 : 4, BufferOS, in emitDebugLine()
610 DI.IsLittleEndian); in emitDebugLine()
622 writeInitialLength(LineTable.Format, Length, OS, DI.IsLittleEndian); in emitDebugLine()
623 writeInteger(LineTable.Version, OS, DI.IsLittleEndian); in emitDebugLine()
624 writeDWARFOffset(HeaderLength, LineTable.Format, OS, DI.IsLittleEndian); in emitDebugLine()
631 Error DWARFYAML::emitDebugAddr(raw_ostream &OS, const Data &DI) { in emitDebugAddr() argument
632 for (const AddrTableEntry &TableEntry : *DI.DebugAddr) { in emitDebugAddr()
637 AddrSize = DI.Is64BitAddrSize ? 8 : 4; in emitDebugAddr()
647 writeInitialLength(TableEntry.Format, Length, OS, DI.IsLittleEndian); in emitDebugAddr()
648 writeInteger((uint16_t)TableEntry.Version, OS, DI.IsLittleEndian); in emitDebugAddr()
649 writeInteger((uint8_t)AddrSize, OS, DI.IsLittleEndian); in emitDebugAddr()
650 writeInteger((uint8_t)TableEntry.SegSelectorSize, OS, DI.IsLittleEndian); in emitDebugAddr()
656 OS, DI.IsLittleEndian)) in emitDebugAddr()
662 DI.IsLittleEndian)) in emitDebugAddr()
672 Error DWARFYAML::emitDebugStrOffsets(raw_ostream &OS, const Data &DI) { in emitDebugStrOffsets() argument
673 assert(DI.DebugStrOffsets && "unexpected emitDebugStrOffsets() call"); in emitDebugStrOffsets()
674 for (const DWARFYAML::StringOffsetsTable &Table : *DI.DebugStrOffsets) { in emitDebugStrOffsets()
683 writeInitialLength(Table.Format, Length, OS, DI.IsLittleEndian); in emitDebugStrOffsets()
684 writeInteger((uint16_t)Table.Version, OS, DI.IsLittleEndian); in emitDebugStrOffsets()
685 writeInteger((uint16_t)Table.Padding, OS, DI.IsLittleEndian); in emitDebugStrOffsets()
688 writeDWARFOffset(Offset, Table.Format, OS, DI.IsLittleEndian); in emitDebugStrOffsets()
996 Error DWARFYAML::emitDebugRnglists(raw_ostream &OS, const Data &DI) { in emitDebugRnglists() argument
997 assert(DI.DebugRnglists && "unexpected emitDebugRnglists() call"); in emitDebugRnglists()
999 OS, *DI.DebugRnglists, DI.IsLittleEndian, DI.Is64BitAddrSize); in emitDebugRnglists()
1002 Error DWARFYAML::emitDebugLoclists(raw_ostream &OS, const Data &DI) { in emitDebugLoclists() argument
1003 assert(DI.DebugLoclists && "unexpected emitDebugRnglists() call"); in emitDebugLoclists()
1005 OS, *DI.DebugLoclists, DI.IsLittleEndian, DI.Is64BitAddrSize); in emitDebugLoclists()
1036 emitDebugSectionImpl(const DWARFYAML::Data &DI, StringRef Sec, in emitDebugSectionImpl() argument
1043 if (Error Err = EmitFunc(DebugInfoStream, DI)) in emitDebugSectionImpl()
1063 DWARFYAML::Data DI; in emitDebugSections() local
1064 DI.IsLittleEndian = IsLittleEndian; in emitDebugSections()
1065 DI.Is64BitAddrSize = Is64BitAddrSize; in emitDebugSections()
1067 YIn >> DI; in emitDebugSections()
1074 for (StringRef SecName : DI.getNonEmptySectionNames()) in emitDebugSections()
1076 emitDebugSectionImpl(DI, SecName, DebugSections)); in emitDebugSections()