Lines Matching refs:DI

87 Error DWARFYAML::emitDebugStr(raw_ostream &OS, const DWARFYAML::Data &DI) {  in emitDebugStr()  argument
88 for (StringRef Str : *DI.DebugStrings) { in emitDebugStr()
131 Error DWARFYAML::emitDebugAbbrev(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugAbbrev() argument
132 for (uint64_t I = 0; I < DI.DebugAbbrev.size(); ++I) { in emitDebugAbbrev()
133 StringRef AbbrevTableContent = DI.getAbbrevTableContentByIndex(I); in emitDebugAbbrev()
140 Error DWARFYAML::emitDebugAranges(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugAranges() argument
141 assert(DI.DebugAranges && "unexpected emitDebugAranges() call"); in emitDebugAranges()
142 for (const auto &Range : *DI.DebugAranges) { in emitDebugAranges()
147 AddrSize = DI.Is64BitAddrSize ? 8 : 4; in emitDebugAranges()
167 writeInitialLength(Range.Format, Length, OS, DI.IsLittleEndian); in emitDebugAranges()
168 writeInteger((uint16_t)Range.Version, OS, DI.IsLittleEndian); in emitDebugAranges()
169 writeDWARFOffset(Range.CuOffset, Range.Format, OS, DI.IsLittleEndian); in emitDebugAranges()
170 writeInteger((uint8_t)AddrSize, OS, DI.IsLittleEndian); in emitDebugAranges()
171 writeInteger((uint8_t)Range.SegSize, OS, DI.IsLittleEndian); in emitDebugAranges()
176 OS, DI.IsLittleEndian)) in emitDebugAranges()
181 DI.IsLittleEndian)); in emitDebugAranges()
189 Error DWARFYAML::emitDebugRanges(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugRanges() argument
192 for (const auto &DebugRanges : *DI.DebugRanges) { in emitDebugRanges()
208 AddrSize = DI.Is64BitAddrSize ? 8 : 4; in emitDebugRanges()
211 DI.IsLittleEndian)) in emitDebugRanges()
217 DI.IsLittleEndian)); in emitDebugRanges()
242 Error DWARFYAML::emitDebugPubnames(raw_ostream &OS, const Data &DI) { in emitDebugPubnames() argument
243 assert(DI.PubNames && "unexpected emitDebugPubnames() call"); in emitDebugPubnames()
244 return emitPubSection(OS, *DI.PubNames, DI.IsLittleEndian); in emitDebugPubnames()
247 Error DWARFYAML::emitDebugPubtypes(raw_ostream &OS, const Data &DI) { in emitDebugPubtypes() argument
248 assert(DI.PubTypes && "unexpected emitDebugPubtypes() call"); in emitDebugPubtypes()
249 return emitPubSection(OS, *DI.PubTypes, DI.IsLittleEndian); in emitDebugPubtypes()
252 Error DWARFYAML::emitDebugGNUPubnames(raw_ostream &OS, const Data &DI) { in emitDebugGNUPubnames() argument
253 assert(DI.GNUPubNames && "unexpected emitDebugGNUPubnames() call"); in emitDebugGNUPubnames()
254 return emitPubSection(OS, *DI.GNUPubNames, DI.IsLittleEndian, in emitDebugGNUPubnames()
258 Error DWARFYAML::emitDebugGNUPubtypes(raw_ostream &OS, const Data &DI) { in emitDebugGNUPubtypes() argument
259 assert(DI.GNUPubTypes && "unexpected emitDebugGNUPubtypes() call"); in emitDebugGNUPubtypes()
260 return emitPubSection(OS, *DI.GNUPubTypes, DI.IsLittleEndian, in emitDebugGNUPubtypes()
264 static Expected<uint64_t> writeDIE(const DWARFYAML::Data &DI, uint64_t CUIndex, in writeDIE() argument
276 DI.getAbbrevTableInfoByID(AbbrevTableID); in writeDIE()
284 DI.DebugAbbrev[AbbrevTableInfoOrErr->Index].Table); in writeDIE()
406 Error DWARFYAML::emitDebugInfo(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugInfo() argument
407 for (uint64_t I = 0; I < DI.CompileUnits.size(); ++I) { in emitDebugInfo()
408 const DWARFYAML::Unit &Unit = DI.CompileUnits[I]; in emitDebugInfo()
413 AddrSize = DI.Is64BitAddrSize ? 8 : 4; in emitDebugInfo()
429 writeDIE(DI, I, AbbrevTableID, Params, Entry, EntryBufferOS, in emitDebugInfo()
430 DI.IsLittleEndian)) in emitDebugInfo()
441 writeInitialLength(Unit.Format, Length, OS, DI.IsLittleEndian); in emitDebugInfo()
442 writeInteger((uint16_t)Unit.Version, OS, DI.IsLittleEndian); in emitDebugInfo()
449 DI.getAbbrevTableInfoByID(AbbrevTableID)) { in emitDebugInfo()
460 writeInteger((uint8_t)Unit.Type, OS, DI.IsLittleEndian); in emitDebugInfo()
461 writeInteger((uint8_t)AddrSize, OS, DI.IsLittleEndian); in emitDebugInfo()
462 writeDWARFOffset(AbbrevTableOffset, Unit.Format, OS, DI.IsLittleEndian); in emitDebugInfo()
464 writeDWARFOffset(AbbrevTableOffset, Unit.Format, OS, DI.IsLittleEndian); in emitDebugInfo()
465 writeInteger((uint8_t)AddrSize, OS, DI.IsLittleEndian); in emitDebugInfo()
569 Error DWARFYAML::emitDebugLine(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugLine() argument
570 for (const DWARFYAML::LineTable &LineTable : DI.DebugLines) { in emitDebugLine()
576 writeInteger(LineTable.MinInstLength, BufferOS, DI.IsLittleEndian); in emitDebugLine()
579 writeInteger(LineTable.MaxOpsPerInst, BufferOS, DI.IsLittleEndian); in emitDebugLine()
580 writeInteger(LineTable.DefaultIsStmt, BufferOS, DI.IsLittleEndian); in emitDebugLine()
581 writeInteger(LineTable.LineBase, BufferOS, DI.IsLittleEndian); in emitDebugLine()
582 writeInteger(LineTable.LineRange, BufferOS, DI.IsLittleEndian); in emitDebugLine()
590 writeInteger(OpcodeBase, BufferOS, DI.IsLittleEndian); in emitDebugLine()
592 writeInteger(OpcodeLength, BufferOS, DI.IsLittleEndian); in emitDebugLine()
608 writeLineTableOpcode(Op, OpcodeBase, DI.Is64BitAddrSize ? 8 : 4, BufferOS, in emitDebugLine()
609 DI.IsLittleEndian); in emitDebugLine()
621 writeInitialLength(LineTable.Format, Length, OS, DI.IsLittleEndian); in emitDebugLine()
622 writeInteger(LineTable.Version, OS, DI.IsLittleEndian); in emitDebugLine()
623 writeDWARFOffset(HeaderLength, LineTable.Format, OS, DI.IsLittleEndian); in emitDebugLine()
630 Error DWARFYAML::emitDebugAddr(raw_ostream &OS, const Data &DI) { in emitDebugAddr() argument
631 for (const AddrTableEntry &TableEntry : *DI.DebugAddr) { in emitDebugAddr()
636 AddrSize = DI.Is64BitAddrSize ? 8 : 4; in emitDebugAddr()
646 writeInitialLength(TableEntry.Format, Length, OS, DI.IsLittleEndian); in emitDebugAddr()
647 writeInteger((uint16_t)TableEntry.Version, OS, DI.IsLittleEndian); in emitDebugAddr()
648 writeInteger((uint8_t)AddrSize, OS, DI.IsLittleEndian); in emitDebugAddr()
649 writeInteger((uint8_t)TableEntry.SegSelectorSize, OS, DI.IsLittleEndian); in emitDebugAddr()
655 OS, DI.IsLittleEndian)) in emitDebugAddr()
661 DI.IsLittleEndian)) in emitDebugAddr()
671 Error DWARFYAML::emitDebugStrOffsets(raw_ostream &OS, const Data &DI) { in emitDebugStrOffsets() argument
672 assert(DI.DebugStrOffsets && "unexpected emitDebugStrOffsets() call"); in emitDebugStrOffsets()
673 for (const DWARFYAML::StringOffsetsTable &Table : *DI.DebugStrOffsets) { in emitDebugStrOffsets()
682 writeInitialLength(Table.Format, Length, OS, DI.IsLittleEndian); in emitDebugStrOffsets()
683 writeInteger((uint16_t)Table.Version, OS, DI.IsLittleEndian); in emitDebugStrOffsets()
684 writeInteger((uint16_t)Table.Padding, OS, DI.IsLittleEndian); in emitDebugStrOffsets()
687 writeDWARFOffset(Offset, Table.Format, OS, DI.IsLittleEndian); in emitDebugStrOffsets()
995 Error DWARFYAML::emitDebugRnglists(raw_ostream &OS, const Data &DI) { in emitDebugRnglists() argument
996 assert(DI.DebugRnglists && "unexpected emitDebugRnglists() call"); in emitDebugRnglists()
998 OS, *DI.DebugRnglists, DI.IsLittleEndian, DI.Is64BitAddrSize); in emitDebugRnglists()
1001 Error DWARFYAML::emitDebugLoclists(raw_ostream &OS, const Data &DI) { in emitDebugLoclists() argument
1002 assert(DI.DebugLoclists && "unexpected emitDebugRnglists() call"); in emitDebugLoclists()
1004 OS, *DI.DebugLoclists, DI.IsLittleEndian, DI.Is64BitAddrSize); in emitDebugLoclists()
1035 emitDebugSectionImpl(const DWARFYAML::Data &DI, StringRef Sec, in emitDebugSectionImpl() argument
1042 if (Error Err = EmitFunc(DebugInfoStream, DI)) in emitDebugSectionImpl()
1062 DWARFYAML::Data DI; in emitDebugSections() local
1063 DI.IsLittleEndian = IsLittleEndian; in emitDebugSections()
1064 DI.Is64BitAddrSize = Is64BitAddrSize; in emitDebugSections()
1066 YIn >> DI; in emitDebugSections()
1073 for (StringRef SecName : DI.getNonEmptySectionNames()) in emitDebugSections()
1075 emitDebugSectionImpl(DI, SecName, DebugSections)); in emitDebugSections()