llvm.org GIT mirror llvm / 5972df2
Rework conditional for printing out pub sections. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191571 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 6 years ago
1 changed file(s) with 6 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
3939 if (GnuStyle)
4040 OS << "Offset Linkage Kind Name\n";
4141 else
42 OS << "Offset Name\n";
42 OS << "Offset Name\n";
4343
4444 while (offset < Data.size()) {
4545 uint32_t dieRef = pubNames.getU32(&offset);
4646 if (dieRef == 0)
4747 break;
48 OS << format("0x%8.8x ", dieRef);
4849 if (GnuStyle) {
4950 PubIndexEntryDescriptor desc(pubNames.getU8(&offset));
50 OS << format("0x%8.8x ", dieRef)
51 << format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage))
51 OS << format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage))
5252 << ' ' << format("%-8s", dwarf::GDBIndexEntryKindString(desc.Kind))
53 << ' ' << '\"' << pubNames.getCStr(&offset) << "\"\n";
54 } else {
55 OS << format("0x%8.8x ", dieRef);
56 OS << '\"' << pubNames.getCStr(&offset) << "\"\n";
57 }
53 << ' ';
54 }
55 OS << '\"' << pubNames.getCStr(&offset) << "\"\n";
5856 }
5957 }
6058