[llvm] r191255 - Format the index entry kind string to align.
Eric Christopher
echristo at gmail.com
Mon Sep 23 17:17:49 PDT 2013
Author: echristo
Date: Mon Sep 23 19:17:49 2013
New Revision: 191255
URL: http://llvm.org/viewvc/llvm-project?rev=191255&view=rev
Log:
Format the index entry kind string to align.
Modified:
llvm/trunk/lib/DebugInfo/DWARFContext.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARFContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFContext.cpp?rev=191255&r1=191254&r2=191255&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFContext.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFContext.cpp Mon Sep 23 19:17:49 2013
@@ -134,7 +134,7 @@ void DWARFContext::dump(raw_ostream &OS,
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,
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";
}
}
More information about the llvm-commits
mailing list