Lines Matching refs:W

148 void AppleAcceleratorTable::Header::dump(ScopedPrinter &W) const {  in dump()
149 DictScope HeaderScope(W, "Header"); in dump()
150 W.printHex("Magic", Magic); in dump()
151 W.printHex("Version", Version); in dump()
152 W.printHex("Hash function", HashFunction); in dump()
153 W.printNumber("Bucket count", BucketCount); in dump()
154 W.printNumber("Hashes count", HashCount); in dump()
155 W.printNumber("HeaderData length", HeaderDataLength); in dump()
175 bool AppleAcceleratorTable::dumpName(ScopedPrinter &W, in dumpName() argument
180 W.printString("Incorrectly terminated list."); in dumpName()
187 DictScope NameScope(W, ("Name@0x" + Twine::utohexstr(NameOffset)).str()); in dumpName()
188 W.startLine() << format("String: 0x%08" PRIx64, StringOffset); in dumpName()
189 W.getOStream() << " \"" << StringSection.getCStr(&StringOffset) << "\"\n"; in dumpName()
193 ListScope DataScope(W, ("Data " + Twine(Data)).str()); in dumpName()
196 W.startLine() << format("Atom[%d]: ", i); in dumpName()
198 Atom.dump(W.getOStream()); in dumpName()
202 W.getOStream() << " (" << Str << ")"; in dumpName()
205 W.getOStream() << "Error extracting the value"; in dumpName()
206 W.getOStream() << "\n"; in dumpName()
217 ScopedPrinter W(OS); in dump() local
219 Hdr.dump(W); in dump()
221 W.printNumber("DIE offset base", HdrData.DIEOffsetBase); in dump()
222 W.printNumber("Number of atoms", uint64_t(HdrData.Atoms.size())); in dump()
223 W.printNumber("Size of each hash data entry", getHashDataEntryLength()); in dump()
226 ListScope AtomsScope(W, "Atoms"); in dump()
229 DictScope AtomScope(W, ("Atom " + Twine(i++)).str()); in dump()
230 W.startLine() << "Type: " << formatAtom(Atom.first) << '\n'; in dump()
231 W.startLine() << "Form: " << formatv("{0}", Atom.second) << '\n'; in dump()
244 ListScope BucketScope(W, ("Bucket " + Twine(Bucket)).str()); in dump()
246 W.printString("EMPTY"); in dump()
259 ListScope HashScope(W, ("Hash 0x" + Twine::utohexstr(Hash)).str()); in dump()
261 W.printString("Invalid section offset"); in dump()
264 while (dumpName(W, AtomForms, &DataOffset)) in dump()
431 void DWARFDebugNames::Header::dump(ScopedPrinter &W) const { in dump()
432 DictScope HeaderScope(W, "Header"); in dump()
433 W.printHex("Length", UnitLength); in dump()
434 W.printString("Format", dwarf::FormatString(Format)); in dump()
435 W.printNumber("Version", Version); in dump()
436 W.printNumber("CU count", CompUnitCount); in dump()
437 W.printNumber("Local TU count", LocalTypeUnitCount); in dump()
438 W.printNumber("Foreign TU count", ForeignTypeUnitCount); in dump()
439 W.printNumber("Bucket count", BucketCount); in dump()
440 W.printNumber("Name count", NameCount); in dump()
441 W.printHex("Abbreviations table size", AbbrevTableSize); in dump()
442 W.startLine() << "Augmentation: '" << AugmentationString << "'\n"; in dump()
479 void DWARFDebugNames::Abbrev::dump(ScopedPrinter &W) const { in dump()
480 DictScope AbbrevScope(W, ("Abbreviation 0x" + Twine::utohexstr(Code)).str()); in dump()
481 W.startLine() << formatv("Tag: {0}\n", Tag); in dump()
484 W.startLine() << formatv("{0}: {1}\n", Attr.Index, Attr.Form); in dump()
705 ScopedPrinter &W, const DWARFFormValue &FormValue) const { in dumpParentIdx() argument
708 W.getOStream() << "<invalid offset data>"; in dumpParentIdx()
714 W.getOStream() << "<parent not indexed>"; in dumpParentIdx()
719 W.getOStream() << "Entry @ 0x" + Twine::utohexstr(AbsoluteOffset); in dumpParentIdx()
722 void DWARFDebugNames::Entry::dump(ScopedPrinter &W) const { in dump()
723 W.startLine() << formatv("Abbrev: {0:x}\n", Abbr->Code); in dump()
724 W.startLine() << formatv("Tag: {0}\n", Abbr->Tag); in dump()
728 W.startLine() << formatv("{0}: ", Index); in dump()
732 dumpParentIdx(W, FormValue); in dump()
734 FormValue.dump(W.getOStream()); in dump()
735 W.getOStream() << '\n'; in dump()
828 bool DWARFDebugNames::NameIndex::dumpEntry(ScopedPrinter &W, in dumpEntry() argument
834 [&W](const ErrorInfoBase &EI) { EI.log(W.startLine()); }); in dumpEntry()
838 DictScope EntryScope(W, ("Entry @ 0x" + Twine::utohexstr(EntryId)).str()); in dumpEntry()
839 EntryOr->dump(W); in dumpEntry()
843 void DWARFDebugNames::NameIndex::dumpName(ScopedPrinter &W, in dumpName() argument
846 DictScope NameScope(W, ("Name " + Twine(NTE.getIndex())).str()); in dumpName()
848 W.printHex("Hash", *Hash); in dumpName()
850 W.startLine() << format("String: 0x%08" PRIx64, NTE.getStringOffset()); in dumpName()
851 W.getOStream() << " \"" << NTE.getString() << "\"\n"; in dumpName()
854 while (dumpEntry(W, &EntryOffset)) in dumpName()
858 void DWARFDebugNames::NameIndex::dumpCUs(ScopedPrinter &W) const { in dumpCUs()
859 ListScope CUScope(W, "Compilation Unit offsets"); in dumpCUs()
861 W.startLine() << format("CU[%u]: 0x%08" PRIx64 "\n", CU, getCUOffset(CU)); in dumpCUs()
864 void DWARFDebugNames::NameIndex::dumpLocalTUs(ScopedPrinter &W) const { in dumpLocalTUs()
868 ListScope TUScope(W, "Local Type Unit offsets"); in dumpLocalTUs()
870 W.startLine() << format("LocalTU[%u]: 0x%08" PRIx64 "\n", TU, in dumpLocalTUs()
874 void DWARFDebugNames::NameIndex::dumpForeignTUs(ScopedPrinter &W) const { in dumpForeignTUs()
878 ListScope TUScope(W, "Foreign Type Unit signatures"); in dumpForeignTUs()
880 W.startLine() << format("ForeignTU[%u]: 0x%016" PRIx64 "\n", TU, in dumpForeignTUs()
885 void DWARFDebugNames::NameIndex::dumpAbbreviations(ScopedPrinter &W) const { in dumpAbbreviations()
886 ListScope AbbrevsScope(W, "Abbreviations"); in dumpAbbreviations()
894 Abbr->dump(W); in dumpAbbreviations()
897 void DWARFDebugNames::NameIndex::dumpBucket(ScopedPrinter &W, in dumpBucket() argument
899 ListScope BucketScope(W, ("Bucket " + Twine(Bucket)).str()); in dumpBucket()
902 W.printString("EMPTY"); in dumpBucket()
906 W.printString("Name index is invalid"); in dumpBucket()
915 dumpName(W, getNameTableEntry(Index), Hash); in dumpBucket()
919 LLVM_DUMP_METHOD void DWARFDebugNames::NameIndex::dump(ScopedPrinter &W) const { in dump()
920 DictScope UnitScope(W, ("Name Index @ 0x" + Twine::utohexstr(Base)).str()); in dump()
921 Hdr.dump(W); in dump()
922 dumpCUs(W); in dump()
923 dumpLocalTUs(W); in dump()
924 dumpForeignTUs(W); in dump()
925 dumpAbbreviations(W); in dump()
929 dumpBucket(W, Bucket); in dump()
933 W.startLine() << "Hash table not present\n"; in dump()
935 dumpName(W, NTE, std::nullopt); in dump()
956 ScopedPrinter W(OS); in dump() local
958 NI.dump(W); in dump()