diff options
author | Eric Christopher <echristo@gmail.com> | 2013-09-27 22:10:10 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-09-27 22:10:10 +0000 |
commit | 7857d489a997a36bd49e5032cdaeabb7114e8627 (patch) | |
tree | 2e2cd0317535d29a7a2ce3ebb3cf3fc86c922815 /llvm/lib | |
parent | 8ecfb52388e1ae633e03e40313057b59369e1f58 (diff) | |
download | bcm5719-llvm-7857d489a997a36bd49e5032cdaeabb7114e8627.tar.gz bcm5719-llvm-7857d489a997a36bd49e5032cdaeabb7114e8627.zip |
Rework conditional for printing out pub sections.
llvm-svn: 191571
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFContext.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp index 4e3b4b67e33..f8234e93c58 100644 --- a/llvm/lib/DebugInfo/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARFContext.cpp @@ -40,22 +40,20 @@ static void dumpPubSection(raw_ostream &OS, StringRef Name, StringRef Data, if (GnuStyle) OS << "Offset Linkage Kind Name\n"; else - OS << "Offset Name\n"; + OS << "Offset Name\n"; while (offset < Data.size()) { uint32_t dieRef = pubNames.getU32(&offset); if (dieRef == 0) break; + OS << format("0x%8.8x ", dieRef); if (GnuStyle) { PubIndexEntryDescriptor desc(pubNames.getU8(&offset)); - OS << format("0x%8.8x ", dieRef) - << format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage)) + OS << format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage)) << ' ' << format("%-8s", dwarf::GDBIndexEntryKindString(desc.Kind)) - << ' ' << '\"' << pubNames.getCStr(&offset) << "\"\n"; - } else { - OS << format("0x%8.8x ", dieRef); - OS << '\"' << pubNames.getCStr(&offset) << "\"\n"; + << ' '; } + OS << '\"' << pubNames.getCStr(&offset) << "\"\n"; } } |