summaryrefslogtreecommitdiff
path: root/lib/DebugInfo
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-09-24 00:17:49 +0000
committerEric Christopher <echristo@gmail.com>2013-09-24 00:17:49 +0000
commit56b62c0ea29d2579a982c620eddaaf432904c079 (patch)
tree4e921ecb800a826f330fcbe0d76596b815737a5f /lib/DebugInfo
parentcb21ba8e76eb629078a7b2f953c96bf09ad76ef7 (diff)
downloadllvm-56b62c0ea29d2579a982c620eddaaf432904c079.tar.gz
llvm-56b62c0ea29d2579a982c620eddaaf432904c079.tar.bz2
llvm-56b62c0ea29d2579a982c620eddaaf432904c079.tar.xz
Format the index entry kind string to align.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r--lib/DebugInfo/DWARFContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp
index 95a1b628f2..0e45322a3b 100644
--- a/lib/DebugInfo/DWARFContext.cpp
+++ b/lib/DebugInfo/DWARFContext.cpp
@@ -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";
}
}