mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-06 17:24:34 +00:00
Slight formatting change for pubnames/pubtypes output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191401 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -37,7 +37,7 @@ static void dumpPubSection(raw_ostream &OS, StringRef Name, StringRef Data,
|
|||||||
OS << "Version: " << pubNames.getU16(&offset) << "\n";
|
OS << "Version: " << pubNames.getU16(&offset) << "\n";
|
||||||
OS << "Offset in .debug_info: " << pubNames.getU32(&offset) << "\n";
|
OS << "Offset in .debug_info: " << pubNames.getU32(&offset) << "\n";
|
||||||
OS << "Size: " << pubNames.getU32(&offset) << "\n";
|
OS << "Size: " << pubNames.getU32(&offset) << "\n";
|
||||||
OS << "Offset Linkage Kind Name\n";
|
OS << "Offset Linkage Kind Name\n";
|
||||||
while (offset < Data.size()) {
|
while (offset < Data.size()) {
|
||||||
uint32_t dieRef = pubNames.getU32(&offset);
|
uint32_t dieRef = pubNames.getU32(&offset);
|
||||||
if (dieRef == 0)
|
if (dieRef == 0)
|
||||||
@ -45,8 +45,8 @@ static void dumpPubSection(raw_ostream &OS, StringRef Name, StringRef Data,
|
|||||||
PubIndexEntryDescriptor desc(pubNames.getU8(&offset));
|
PubIndexEntryDescriptor desc(pubNames.getU8(&offset));
|
||||||
OS << format("0x%8.8x ", dieRef)
|
OS << format("0x%8.8x ", dieRef)
|
||||||
<< format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage)) << ' '
|
<< format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage)) << ' '
|
||||||
<< format("%-8s", dwarf::GDBIndexEntryKindString(desc.Kind)) << '\"'
|
<< format("%-8s", dwarf::GDBIndexEntryKindString(desc.Kind)) << ' '
|
||||||
<< pubNames.getCStr(&offset) << "\"\n";
|
<< '\"' << pubNames.getCStr(&offset) << "\"\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user