1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Format the index entry kind string to align.

llvm-svn: 191255
This commit is contained in:
Eric Christopher 2013-09-24 00:17:49 +00:00
parent 13e40077a4
commit 1c2f577ec5

View File

@ -134,7 +134,7 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) {
OS << "Version: " << pubNames.getU16(&offset) << "\n";
OS << "Offset in .debug_info: " << pubNames.getU32(&offset) << "\n";
OS << "Size: " << pubNames.getU32(&offset) << "\n";
OS << "Offset Linkage Kind Name\n";
OS << "Offset Linkage Kind Name\n";
while (offset < getGnuPubNamesSection().size()) {
uint32_t dieRef = pubNames.getU32(&offset);
if (dieRef == 0)
@ -142,8 +142,8 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) {
PubIndexEntryDescriptor desc(pubNames.getU8(&offset));
OS << format("0x%8.8x ", dieRef)
<< format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage))
<< ' ' << dwarf::GDBIndexEntryKindString(desc.Kind) << " \""
<< pubNames.getCStr(&offset) << "\"\n";
<< ' ' << format("%-8s", dwarf::GDBIndexEntryKindString(desc.Kind))
<< " \"" << pubNames.getCStr(&offset) << "\"\n";
}
}