Lines Matching +full:os +full:- +full:code +full:- +full:offset

1 //===- DWARFEmitter - Convert YAML to DWARF binary data -------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 /// The DWARF component of yaml2obj. Provided as library code for tests.
12 //===----------------------------------------------------------------------===//
43 static void writeInteger(T Integer, raw_ostream &OS, bool IsLittleEndian) { in writeInteger() argument
46 OS.write(reinterpret_cast<char *>(&Integer), sizeof(T)); in writeInteger()
50 raw_ostream &OS, bool IsLittleEndian) { in writeVariableSizedInteger() argument
52 writeInteger((uint64_t)Integer, OS, IsLittleEndian); in writeVariableSizedInteger()
54 writeInteger((uint32_t)Integer, OS, IsLittleEndian); in writeVariableSizedInteger()
56 writeInteger((uint16_t)Integer, OS, IsLittleEndian); in writeVariableSizedInteger()
58 writeInteger((uint8_t)Integer, OS, IsLittleEndian); in writeVariableSizedInteger()
66 static void ZeroFillBytes(raw_ostream &OS, size_t Size) { in ZeroFillBytes() argument
68 OS.write(reinterpret_cast<char *>(FillData.data()), Size); in ZeroFillBytes()
72 const uint64_t Length, raw_ostream &OS, in writeInitialLength() argument
76 cantFail(writeVariableSizedInteger(dwarf::DW_LENGTH_DWARF64, 4, OS, in writeInitialLength()
79 writeVariableSizedInteger(Length, IsDWARF64 ? 8 : 4, OS, IsLittleEndian)); in writeInitialLength()
82 static void writeDWARFOffset(uint64_t Offset, dwarf::DwarfFormat Format, in writeDWARFOffset() argument
83 raw_ostream &OS, bool IsLittleEndian) { in writeDWARFOffset() argument
84 cantFail(writeVariableSizedInteger(Offset, Format == dwarf::DWARF64 ? 8 : 4, in writeDWARFOffset()
85 OS, IsLittleEndian)); in writeDWARFOffset()
88 Error DWARFYAML::emitDebugStr(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugStr() argument
90 OS.write(Str.data(), Str.size()); in emitDebugStr()
91 OS.write('\0'); in emitDebugStr()
102 return It->second; in getAbbrevTableContentByIndex()
105 raw_string_ostream OS(AbbrevTableBuffer); in getAbbrevTableContentByIndex() local
109 AbbrevCode = AbbrevDecl.Code ? (uint64_t)*AbbrevDecl.Code : AbbrevCode + 1; in getAbbrevTableContentByIndex()
110 encodeULEB128(AbbrevCode, OS); in getAbbrevTableContentByIndex()
111 encodeULEB128(AbbrevDecl.Tag, OS); in getAbbrevTableContentByIndex()
112 OS.write(AbbrevDecl.Children); in getAbbrevTableContentByIndex()
114 encodeULEB128(Attr.Attribute, OS); in getAbbrevTableContentByIndex()
115 encodeULEB128(Attr.Form, OS); in getAbbrevTableContentByIndex()
117 encodeSLEB128(Attr.Value, OS); in getAbbrevTableContentByIndex()
119 encodeULEB128(0, OS); in getAbbrevTableContentByIndex()
120 encodeULEB128(0, OS); in getAbbrevTableContentByIndex()
124 // consisting of a 0 byte for the abbreviation code. in getAbbrevTableContentByIndex()
125 OS.write_zeros(1); in getAbbrevTableContentByIndex()
132 Error DWARFYAML::emitDebugAbbrev(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugAbbrev() argument
135 OS.write(AbbrevTableContent.data(), AbbrevTableContent.size()); in emitDebugAbbrev()
141 Error DWARFYAML::emitDebugAranges(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugAranges() argument
164 Length += PaddedHeaderLength - HeaderLength; 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()
173 ZeroFillBytes(OS, PaddedHeaderLength - HeaderLength); in emitDebugAranges()
177 OS, DI.IsLittleEndian)) in emitDebugAranges()
181 cantFail(writeVariableSizedInteger(Descriptor.Length, AddrSize, OS, in emitDebugAranges()
184 ZeroFillBytes(OS, AddrSize * 2); in emitDebugAranges()
190 Error DWARFYAML::emitDebugRanges(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugRanges() argument
191 const size_t RangesOffset = OS.tell(); in emitDebugRanges()
194 const size_t CurrOffset = OS.tell() - RangesOffset; in emitDebugRanges()
195 if (DebugRanges.Offset && (uint64_t)*DebugRanges.Offset < CurrOffset) in emitDebugRanges()
197 "'Offset' for 'debug_ranges' with index " + in emitDebugRanges()
202 if (DebugRanges.Offset) in emitDebugRanges()
203 ZeroFillBytes(OS, *DebugRanges.Offset - CurrOffset); in emitDebugRanges()
211 if (Error Err = writeVariableSizedInteger(Entry.LowOffset, AddrSize, OS, in emitDebugRanges()
215 "unable to write debug_ranges address offset: %s", in emitDebugRanges()
217 cantFail(writeVariableSizedInteger(Entry.HighOffset, AddrSize, OS, in emitDebugRanges()
220 ZeroFillBytes(OS, AddrSize * 2); in emitDebugRanges()
227 static Error emitPubSection(raw_ostream &OS, const DWARFYAML::PubSection &Sect, in emitPubSection() argument
229 writeInitialLength(Sect.Format, Sect.Length, OS, IsLittleEndian); in emitPubSection()
230 writeInteger((uint16_t)Sect.Version, OS, IsLittleEndian); in emitPubSection()
231 writeInteger((uint32_t)Sect.UnitOffset, OS, IsLittleEndian); in emitPubSection()
232 writeInteger((uint32_t)Sect.UnitSize, OS, IsLittleEndian); in emitPubSection()
234 writeInteger((uint32_t)Entry.DieOffset, OS, IsLittleEndian); in emitPubSection()
236 writeInteger((uint8_t)Entry.Descriptor, OS, IsLittleEndian); in emitPubSection()
237 OS.write(Entry.Name.data(), Entry.Name.size()); in emitPubSection()
238 OS.write('\0'); in emitPubSection()
243 Error DWARFYAML::emitDebugPubnames(raw_ostream &OS, const Data &DI) { in emitDebugPubnames() argument
245 return emitPubSection(OS, *DI.PubNames, DI.IsLittleEndian); in emitDebugPubnames()
248 Error DWARFYAML::emitDebugPubtypes(raw_ostream &OS, const Data &DI) { in emitDebugPubtypes() argument
250 return emitPubSection(OS, *DI.PubTypes, DI.IsLittleEndian); in emitDebugPubtypes()
253 Error DWARFYAML::emitDebugGNUPubnames(raw_ostream &OS, const Data &DI) { in emitDebugGNUPubnames() argument
255 return emitPubSection(OS, *DI.GNUPubNames, DI.IsLittleEndian, in emitDebugGNUPubnames()
259 Error DWARFYAML::emitDebugGNUPubtypes(raw_ostream &OS, const Data &DI) { in emitDebugGNUPubtypes() argument
261 return emitPubSection(OS, *DI.GNUPubTypes, DI.IsLittleEndian, in emitDebugGNUPubtypes()
269 raw_ostream &OS, bool IsLittleEndian) { in writeDIE() argument
270 uint64_t EntryBegin = OS.tell(); in writeDIE()
271 encodeULEB128(Entry.AbbrCode, OS); in writeDIE()
274 return OS.tell() - EntryBegin; in writeDIE()
285 DI.DebugAbbrev[AbbrevTableInfoOrErr->Index].Table); in writeDIE()
290 "abbrev code must be less than or equal to the number of " in writeDIE()
292 const DWARFYAML::Abbrev &Abbrev = AbbrevDecls[AbbrCode - 1]; in writeDIE()
297 dwarf::Form Form = AbbrForm->Form; in writeDIE()
305 FormVal->Value, Params.AddrSize, OS, IsLittleEndian)) in writeDIE()
310 if (Error Err = writeVariableSizedInteger(FormVal->Value, in writeDIE()
312 OS, IsLittleEndian)) in writeDIE()
317 encodeULEB128(FormVal->BlockData.size(), OS); in writeDIE()
318 OS.write((const char *)FormVal->BlockData.data(), in writeDIE()
319 FormVal->BlockData.size()); in writeDIE()
322 writeInteger((uint8_t)FormVal->BlockData.size(), OS, IsLittleEndian); in writeDIE()
323 OS.write((const char *)FormVal->BlockData.data(), in writeDIE()
324 FormVal->BlockData.size()); in writeDIE()
328 writeInteger((uint16_t)FormVal->BlockData.size(), OS, IsLittleEndian); in writeDIE()
329 OS.write((const char *)FormVal->BlockData.data(), in writeDIE()
330 FormVal->BlockData.size()); in writeDIE()
334 writeInteger((uint32_t)FormVal->BlockData.size(), OS, IsLittleEndian); in writeDIE()
335 OS.write((const char *)FormVal->BlockData.data(), in writeDIE()
336 FormVal->BlockData.size()); in writeDIE()
347 encodeULEB128(FormVal->Value, OS); in writeDIE()
354 writeInteger((uint8_t)FormVal->Value, OS, IsLittleEndian); in writeDIE()
360 writeInteger((uint16_t)FormVal->Value, OS, IsLittleEndian); in writeDIE()
367 writeInteger((uint32_t)FormVal->Value, OS, IsLittleEndian); in writeDIE()
373 writeInteger((uint64_t)FormVal->Value, OS, IsLittleEndian); in writeDIE()
376 encodeSLEB128(FormVal->Value, OS); in writeDIE()
379 OS.write(FormVal->CStr.data(), FormVal->CStr.size()); in writeDIE()
380 OS.write('\0'); in writeDIE()
383 encodeULEB128(FormVal->Value, OS); in writeDIE()
385 Form = static_cast<dwarf::Form>((uint64_t)FormVal->Value); in writeDIE()
394 cantFail(writeVariableSizedInteger(FormVal->Value, in writeDIE()
395 Params.getDwarfOffsetByteSize(), OS, in writeDIE()
404 return OS.tell() - EntryBegin; in writeDIE()
407 Error DWARFYAML::emitDebugInfo(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugInfo() argument
442 writeInitialLength(Unit.Format, Length, OS, DI.IsLittleEndian); in emitDebugInfo()
443 writeInteger((uint16_t)Unit.Version, OS, DI.IsLittleEndian); in emitDebugInfo()
451 AbbrevTableOffset = AbbrevTableInfoOrErr->Offset; 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()
469 OS.write(EntryBuffer.data(), EntryBuffer.size()); in emitDebugInfo()
475 static void emitFileEntry(raw_ostream &OS, const DWARFYAML::File &File) { in emitFileEntry() argument
476 OS.write(File.Name.data(), File.Name.size()); in emitFileEntry()
477 OS.write('\0'); in emitFileEntry()
478 encodeULEB128(File.DirIdx, OS); in emitFileEntry()
479 encodeULEB128(File.ModTime, OS); in emitFileEntry()
480 encodeULEB128(File.Length, OS); in emitFileEntry()
485 raw_ostream &OS) { in writeExtendedOpcode() argument
512 encodeULEB128(ExtLen, OS); in writeExtendedOpcode()
513 OS.write(OpBuffer.data(), OpBuffer.size()); in writeExtendedOpcode()
518 raw_ostream &OS, bool IsLittleEndian) { in writeLineTableOpcode() argument
519 writeInteger((uint8_t)Op.Opcode, OS, IsLittleEndian); in writeLineTableOpcode()
521 writeExtendedOpcode(Op, AddrSize, IsLittleEndian, OS); in writeLineTableOpcode()
536 encodeULEB128(Op.Data, OS); in writeLineTableOpcode()
540 encodeSLEB128(Op.SData, OS); in writeLineTableOpcode()
544 writeInteger((uint16_t)Op.Data, OS, IsLittleEndian); in writeLineTableOpcode()
549 encodeULEB128(OpData, OS); in writeLineTableOpcode()
562 // DWARF v2 uses the same first 9 standard opcodes as v3-5. in getStandardOpcodeLengths()
565 StandardOpcodeLengths.resize(*OpcodeBase > 0 ? *OpcodeBase - 1 : 0, 0); in getStandardOpcodeLengths()
570 Error DWARFYAML::emitDebugLine(raw_ostream &OS, const DWARFYAML::Data &DI) { in emitDebugLine() argument
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()
625 OS.write(Buffer.data(), Buffer.size()); in emitDebugLine()
631 Error DWARFYAML::emitDebugAddr(raw_ostream &OS, const Data &DI) { in emitDebugAddr() argument
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()
661 if (Error Err = writeVariableSizedInteger(Pair.Address, AddrSize, OS, in emitDebugAddr()
672 Error DWARFYAML::emitDebugStrOffsets(raw_ostream &OS, const Data &DI) { in emitDebugStrOffsets() argument
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()
687 for (uint64_t Offset : Table.Offsets) in emitDebugStrOffsets() local
688 writeDWARFOffset(Offset, Table.Format, OS, DI.IsLittleEndian); in emitDebugStrOffsets()
696 void emitDebugNamesHeader(raw_ostream &OS, bool IsLittleEndian, in emitDebugNamesHeader() argument
704 writeInteger(uint32_t(TotalSize), OS, IsLittleEndian); // Unit length in emitDebugNamesHeader()
707 writeInteger(uint16_t(5), OS, IsLittleEndian); // Version in emitDebugNamesHeader()
708 writeInteger(uint16_t(0), OS, IsLittleEndian); // Padding in emitDebugNamesHeader()
709 writeInteger(uint32_t(1), OS, IsLittleEndian); // Compilation Unit count in emitDebugNamesHeader()
710 writeInteger(uint32_t(0), OS, IsLittleEndian); // Local Type Unit count in emitDebugNamesHeader()
711 writeInteger(uint32_t(0), OS, IsLittleEndian); // Foreign Type Unit count in emitDebugNamesHeader()
712 writeInteger(uint32_t(0), OS, IsLittleEndian); // Bucket count in emitDebugNamesHeader()
713 writeInteger(NameCount, OS, IsLittleEndian); in emitDebugNamesHeader()
714 writeInteger(AbbrevSize, OS, IsLittleEndian); in emitDebugNamesHeader()
715 writeInteger(uint32_t(AugmentationString.size()), OS, IsLittleEndian); in emitDebugNamesHeader()
716 OS.write(AugmentationString.data(), AugmentationString.size()); in emitDebugNamesHeader()
724 raw_string_ostream OS(Data); in emitDebugNamesAbbrev() local
726 encodeULEB128(Abbrev.Code, OS); in emitDebugNamesAbbrev()
727 encodeULEB128(Abbrev.Tag, OS); in emitDebugNamesAbbrev()
729 encodeULEB128(Idx, OS); in emitDebugNamesAbbrev()
730 encodeULEB128(Form, OS); in emitDebugNamesAbbrev()
732 encodeULEB128(0, OS); in emitDebugNamesAbbrev()
733 encodeULEB128(0, OS); in emitDebugNamesAbbrev()
735 encodeULEB128(0, OS); in emitDebugNamesAbbrev()
740 /// CU at offset 0.
743 raw_string_ostream OS(Data); in emitDebugNamesCUOffsets() local
744 writeInteger(uint32_t(0), OS, IsLittleEndian); in emitDebugNamesCUOffsets()
759 raw_string_ostream OS(Data); in emitDebugNamesNameTable() local
762 writeInteger(Strp, OS, IsLittleEndian); in emitDebugNamesNameTable()
764 writeInteger(PoolOffset, OS, IsLittleEndian); in emitDebugNamesNameTable()
768 /// Groups entries based on their name (strp) code and returns a map.
777 /// Finds the abbreviation whose code is AbbrevCode and returns a list
778 /// containing the expected size of all non-zero-length forms.
783 return Abbrev.Code.value == AbbrevCode; in getNonZeroDataSizesFor()
787 "did not find an Abbreviation for this code"); in getNonZeroDataSizesFor()
791 for (auto [Idx, Form] : AbbrevIt->Indices) { in getNonZeroDataSizesFor()
809 /// offset for the entries of each unique name.
818 raw_string_ostream OS(Result.PoolData); in emitDebugNamesEntryPool() local
825 encodeULEB128(Entry.Code, OS); in emitDebugNamesEntryPool()
828 getNonZeroDataSizesFor(Entry.Code, Abbrevs); in emitDebugNamesEntryPool()
831 if (DataSizes->size() != Entry.Values.size()) in emitDebugNamesEntryPool()
838 writeVariableSizedInteger(Value, ValueSize, OS, IsLittleEndian)) in emitDebugNamesEntryPool()
841 encodeULEB128(0, OS); in emitDebugNamesEntryPool()
848 Error DWARFYAML::emitDebugNames(raw_ostream &OS, const Data &DI) { in emitDebugNames() argument
855 // Emit all sub-sections into individual strings so that we may compute in emitDebugNames()
862 DI.IsLittleEndian, StrpToEntries, PoolInfo->PoolOffsets); in emitDebugNames()
867 size_t TotalSize = PoolInfo->PoolData.size() + NamesTableData.size() + in emitDebugNames()
871 emitDebugNamesHeader(OS, DI.IsLittleEndian, StrpToEntries.size(), in emitDebugNames()
873 OS.write(CUOffsetsData.data(), CUOffsetsData.size()); in emitDebugNames()
875 OS.write(NamesTableData.data(), NamesTableData.size()); in emitDebugNames()
876 OS.write(AbbrevData.data(), AbbrevData.size()); in emitDebugNames()
877 OS.write(PoolInfo->PoolData.data(), PoolInfo->PoolData.size()); in emitDebugNames()
895 static Error writeListEntryAddress(StringRef EncodingName, raw_ostream &OS, in writeListEntryAddress() argument
898 if (Error Err = writeVariableSizedInteger(Addr, AddrSize, OS, IsLittleEndian)) in writeListEntryAddress()
908 writeDWARFExpression(raw_ostream &OS, in writeDWARFExpression() argument
911 auto CheckOperands = [&](uint64_t ExpectedOperands) -> Error { in writeDWARFExpression()
916 uint64_t ExpressionBegin = OS.tell(); in writeDWARFExpression()
917 writeInteger((uint8_t)Operation.Operator, OS, IsLittleEndian); in writeDWARFExpression()
922 encodeSLEB128(Operation.Values[0], OS); in writeDWARFExpression()
937 return OS.tell() - ExpressionBegin; in writeDWARFExpression()
940 static Expected<uint64_t> writeListEntry(raw_ostream &OS, in writeListEntry() argument
944 uint64_t BeginOffset = OS.tell(); in writeListEntry()
945 writeInteger((uint8_t)Entry.Operator, OS, IsLittleEndian); in writeListEntry()
949 auto CheckOperands = [&](uint64_t ExpectedOperands) -> Error { in writeListEntry()
953 auto WriteAddress = [&](uint64_t Addr) -> Error { in writeListEntry()
954 return writeListEntryAddress(EncodingName, OS, Addr, AddrSize, in writeListEntry()
966 encodeULEB128(Entry.Values[0], OS); in writeListEntry()
973 encodeULEB128(Entry.Values[0], OS); in writeListEntry()
974 encodeULEB128(Entry.Values[1], OS); in writeListEntry()
994 encodeULEB128(Entry.Values[1], OS); in writeListEntry()
998 return OS.tell() - BeginOffset; in writeListEntry()
1001 static Expected<uint64_t> writeListEntry(raw_ostream &OS, in writeListEntry() argument
1005 uint64_t BeginOffset = OS.tell(); in writeListEntry()
1006 writeInteger((uint8_t)Entry.Operator, OS, IsLittleEndian); in writeListEntry()
1010 auto CheckOperands = [&](uint64_t ExpectedOperands) -> Error { in writeListEntry()
1014 auto WriteAddress = [&](uint64_t Addr) -> Error { in writeListEntry()
1015 return writeListEntryAddress(EncodingName, OS, Addr, AddrSize, in writeListEntry()
1019 auto WriteDWARFOperations = [&]() -> Error { in writeListEntry()
1037 encodeULEB128(DescriptionsLength, OS); in writeListEntry()
1038 OS.write(OpBuffer.data(), OpBuffer.size()); in writeListEntry()
1051 encodeULEB128(Entry.Values[0], OS); in writeListEntry()
1058 encodeULEB128(Entry.Values[0], OS); in writeListEntry()
1059 encodeULEB128(Entry.Values[1], OS); in writeListEntry()
1089 encodeULEB128(Entry.Values[1], OS); in writeListEntry()
1095 return OS.tell() - BeginOffset; in writeListEntry()
1099 static Error writeDWARFLists(raw_ostream &OS, in writeDWARFLists() argument
1120 // Offsets holds offsets for each range/location list. The i-th element is in writeDWARFLists()
1121 // the offset from the beginning of the first range/location list to the in writeDWARFLists()
1122 // location of the i-th range list. in writeDWARFLists()
1128 List.Content->writeAsBinary(ListBufferOS, UINT64_MAX); in writeDWARFLists()
1129 Length += List.Content->binary_size(); in writeDWARFLists()
1143 // isn't specified either, yaml2obj will infer it from the auto-generated in writeDWARFLists()
1149 OffsetEntryCount = Table.Offsets ? Table.Offsets->size() : Offsets.size(); in writeDWARFLists()
1159 writeInitialLength(Table.Format, Length, OS, IsLittleEndian); in writeDWARFLists()
1160 writeInteger((uint16_t)Table.Version, OS, IsLittleEndian); in writeDWARFLists()
1161 writeInteger((uint8_t)AddrSize, OS, IsLittleEndian); in writeDWARFLists()
1162 writeInteger((uint8_t)Table.SegSelectorSize, OS, IsLittleEndian); in writeDWARFLists()
1163 writeInteger((uint32_t)OffsetEntryCount, OS, IsLittleEndian); in writeDWARFLists()
1166 for (uint64_t Offset : Offsets) in writeDWARFLists() local
1167 writeDWARFOffset(OffsetsSize + Offset, Table.Format, OS, in writeDWARFLists()
1172 EmitOffsets(ArrayRef<uint64_t>((const uint64_t *)Table.Offsets->data(), in writeDWARFLists()
1173 Table.Offsets->size()), in writeDWARFLists()
1178 OS.write(ListBuffer.data(), ListBuffer.size()); in writeDWARFLists()
1184 Error DWARFYAML::emitDebugRnglists(raw_ostream &OS, const Data &DI) { in emitDebugRnglists() argument
1187 OS, *DI.DebugRnglists, DI.IsLittleEndian, DI.Is64BitAddrSize); in emitDebugRnglists()
1190 Error DWARFYAML::emitDebugLoclists(raw_ostream &OS, const Data &DI) { in emitDebugLoclists() argument
1193 OS, *DI.DebugLoclists, DI.IsLittleEndian, DI.Is64BitAddrSize); in emitDebugLoclists()