Lines Matching refs:W
136 void AppleAcceleratorTable::Header::dump(ScopedPrinter &W) const { in dump()
137 DictScope HeaderScope(W, "Header"); in dump()
138 W.printHex("Magic", Magic); in dump()
139 W.printHex("Version", Version); in dump()
140 W.printHex("Hash function", HashFunction); in dump()
141 W.printNumber("Bucket count", BucketCount); in dump()
142 W.printNumber("Hashes count", HashCount); in dump()
143 W.printNumber("HeaderData length", HeaderDataLength); in dump()
163 bool AppleAcceleratorTable::dumpName(ScopedPrinter &W, in dumpName() argument
169 W.printString("Incorrectly terminated list."); in dumpName()
176 DictScope NameScope(W, ("Name@0x" + Twine::utohexstr(NameOffset)).str()); in dumpName()
177 W.startLine() << format("String: 0x%08" PRIx64, StringOffset); in dumpName()
178 W.getOStream() << " \"" << StringSection.getCStr(&StringOffset) << "\"\n"; in dumpName()
182 ListScope DataScope(W, ("Data " + Twine(Data)).str()); in dumpName()
185 W.startLine() << format("Atom[%d]: ", i); in dumpName()
187 Atom.dump(W.getOStream()); in dumpName()
191 W.getOStream() << " (" << Str << ")"; in dumpName()
194 W.getOStream() << "Error extracting the value"; in dumpName()
195 W.getOStream() << "\n"; in dumpName()
206 ScopedPrinter W(OS); in dump() local
208 Hdr.dump(W); in dump()
210 W.printNumber("DIE offset base", HdrData.DIEOffsetBase); in dump()
211 W.printNumber("Number of atoms", uint64_t(HdrData.Atoms.size())); in dump()
214 ListScope AtomsScope(W, "Atoms"); in dump()
217 DictScope AtomScope(W, ("Atom " + Twine(i++)).str()); in dump()
218 W.startLine() << "Type: " << formatAtom(Atom.first) << '\n'; in dump()
219 W.startLine() << "Form: " << formatv("{0}", Atom.second) << '\n'; in dump()
232 ListScope BucketScope(W, ("Bucket " + Twine(Bucket)).str()); in dump()
234 W.printString("EMPTY"); in dump()
247 ListScope HashScope(W, ("Hash 0x" + Twine::utohexstr(Hash)).str()); in dump()
249 W.printString("Invalid section offset"); in dump()
252 while (dumpName(W, AtomForms, &DataOffset)) in dump()
364 void DWARFDebugNames::Header::dump(ScopedPrinter &W) const { in dump()
365 DictScope HeaderScope(W, "Header"); in dump()
366 W.printHex("Length", UnitLength); in dump()
367 W.printString("Format", dwarf::FormatString(Format)); in dump()
368 W.printNumber("Version", Version); in dump()
369 W.printNumber("CU count", CompUnitCount); in dump()
370 W.printNumber("Local TU count", LocalTypeUnitCount); in dump()
371 W.printNumber("Foreign TU count", ForeignTypeUnitCount); in dump()
372 W.printNumber("Bucket count", BucketCount); in dump()
373 W.printNumber("Name count", NameCount); in dump()
374 W.printHex("Abbreviations table size", AbbrevTableSize); in dump()
375 W.startLine() << "Augmentation: '" << AugmentationString << "'\n"; in dump()
412 void DWARFDebugNames::Abbrev::dump(ScopedPrinter &W) const { in dump()
413 DictScope AbbrevScope(W, ("Abbreviation 0x" + Twine::utohexstr(Code)).str()); in dump()
414 W.startLine() << formatv("Tag: {0}\n", Tag); in dump()
417 W.startLine() << formatv("{0}: {1}\n", Attr.Index, Attr.Form); in dump()
570 void DWARFDebugNames::Entry::dump(ScopedPrinter &W) const { in dump()
571 W.printHex("Abbrev", Abbr->Code); in dump()
572 W.startLine() << formatv("Tag: {0}\n", Abbr->Tag); in dump()
575 W.startLine() << formatv("{0}: ", std::get<0>(Tuple).Index); in dump()
576 std::get<1>(Tuple).dump(W.getOStream()); in dump()
577 W.getOStream() << '\n'; in dump()
669 bool DWARFDebugNames::NameIndex::dumpEntry(ScopedPrinter &W, in dumpEntry() argument
675 [&W](const ErrorInfoBase &EI) { EI.log(W.startLine()); }); in dumpEntry()
679 DictScope EntryScope(W, ("Entry @ 0x" + Twine::utohexstr(EntryId)).str()); in dumpEntry()
680 EntryOr->dump(W); in dumpEntry()
684 void DWARFDebugNames::NameIndex::dumpName(ScopedPrinter &W, in dumpName() argument
687 DictScope NameScope(W, ("Name " + Twine(NTE.getIndex())).str()); in dumpName()
689 W.printHex("Hash", *Hash); in dumpName()
691 W.startLine() << format("String: 0x%08" PRIx64, NTE.getStringOffset()); in dumpName()
692 W.getOStream() << " \"" << NTE.getString() << "\"\n"; in dumpName()
695 while (dumpEntry(W, &EntryOffset)) in dumpName()
699 void DWARFDebugNames::NameIndex::dumpCUs(ScopedPrinter &W) const { in dumpCUs()
700 ListScope CUScope(W, "Compilation Unit offsets"); in dumpCUs()
702 W.startLine() << format("CU[%u]: 0x%08" PRIx64 "\n", CU, getCUOffset(CU)); in dumpCUs()
705 void DWARFDebugNames::NameIndex::dumpLocalTUs(ScopedPrinter &W) const { in dumpLocalTUs()
709 ListScope TUScope(W, "Local Type Unit offsets"); in dumpLocalTUs()
711 W.startLine() << format("LocalTU[%u]: 0x%08" PRIx64 "\n", TU, in dumpLocalTUs()
715 void DWARFDebugNames::NameIndex::dumpForeignTUs(ScopedPrinter &W) const { in dumpForeignTUs()
719 ListScope TUScope(W, "Foreign Type Unit signatures"); in dumpForeignTUs()
721 W.startLine() << format("ForeignTU[%u]: 0x%016" PRIx64 "\n", TU, in dumpForeignTUs()
726 void DWARFDebugNames::NameIndex::dumpAbbreviations(ScopedPrinter &W) const { in dumpAbbreviations()
727 ListScope AbbrevsScope(W, "Abbreviations"); in dumpAbbreviations()
729 Abbr.dump(W); in dumpAbbreviations()
732 void DWARFDebugNames::NameIndex::dumpBucket(ScopedPrinter &W, in dumpBucket() argument
734 ListScope BucketScope(W, ("Bucket " + Twine(Bucket)).str()); in dumpBucket()
737 W.printString("EMPTY"); in dumpBucket()
741 W.printString("Name index is invalid"); in dumpBucket()
750 dumpName(W, getNameTableEntry(Index), Hash); in dumpBucket()
754 LLVM_DUMP_METHOD void DWARFDebugNames::NameIndex::dump(ScopedPrinter &W) const { in dump()
755 DictScope UnitScope(W, ("Name Index @ 0x" + Twine::utohexstr(Base)).str()); in dump()
756 Hdr.dump(W); in dump()
757 dumpCUs(W); in dump()
758 dumpLocalTUs(W); in dump()
759 dumpForeignTUs(W); in dump()
760 dumpAbbreviations(W); in dump()
764 dumpBucket(W, Bucket); in dump()
768 W.startLine() << "Hash table not present\n"; in dump()
770 dumpName(W, NTE, None); in dump()
791 ScopedPrinter W(OS); in dump() local
793 NI.dump(W); in dump()