mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
[llvm-objdump] switch some uses of format() to format_hex() and left_justify()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218649 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2840,18 +2840,17 @@ void llvm::printMachOBindTable(const object::MachOObjectFile *Obj) {
|
||||
|
||||
// Table lines look like:
|
||||
// __DATA __got 0x00012010 pointer 0 libSystem ___stack_chk_guard
|
||||
outs() << format("%-8s %-18s 0x%08" PRIX64 " %-8s %-8" PRId64 " %-20s",
|
||||
SegmentName.str().c_str(),
|
||||
SectionName.str().c_str(),
|
||||
Address,
|
||||
Entry.typeName().str().c_str(),
|
||||
Entry.addend(),
|
||||
ordinalName(Obj, Entry.ordinal()).str().c_str())
|
||||
<< Entry.symbolName();
|
||||
StringRef Attr;
|
||||
if (Entry.flags() & MachO::BIND_SYMBOL_FLAGS_WEAK_IMPORT)
|
||||
outs() << " (weak_import)\n";
|
||||
else
|
||||
outs() << "\n";
|
||||
Attr = " (weak_import)";
|
||||
outs() << left_justify(SegmentName, 8) << " "
|
||||
<< left_justify(SectionName, 18) << " "
|
||||
<< format_hex(Address, 10, true) << " "
|
||||
<< left_justify(Entry.typeName(), 8) << " "
|
||||
<< format_decimal(Entry.addend(), 8) << " "
|
||||
<< left_justify(ordinalName(Obj, Entry.ordinal()), 16) << " "
|
||||
<< Entry.symbolName()
|
||||
<< Attr << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2874,11 +2873,10 @@ void llvm::printMachOLazyBindTable(const object::MachOObjectFile *Obj) {
|
||||
|
||||
// Table lines look like:
|
||||
// __DATA __got 0x00012010 libSystem ___stack_chk_guard
|
||||
outs() << format("%-8s %-18s 0x%08" PRIX64 " %-20s",
|
||||
SegmentName.str().c_str(),
|
||||
SectionName.str().c_str(),
|
||||
Address,
|
||||
ordinalName(Obj, Entry.ordinal()).str().c_str())
|
||||
outs() << left_justify(SegmentName, 8) << " "
|
||||
<< left_justify(SectionName, 18) << " "
|
||||
<< format_hex(Address, 10, true) << " "
|
||||
<< left_justify(ordinalName(Obj, Entry.ordinal()), 16) << " "
|
||||
<< Entry.symbolName() << "\n";
|
||||
}
|
||||
}
|
||||
@@ -2909,12 +2907,11 @@ void llvm::printMachOWeakBindTable(const object::MachOObjectFile *Obj) {
|
||||
|
||||
// Table lines look like:
|
||||
// __DATA __data 0x00001000 pointer 0 _foo
|
||||
outs() << format("%-8s %-18s 0x%08" PRIX64 " %-8s %-8" PRId64 " ",
|
||||
SegmentName.str().c_str(),
|
||||
SectionName.str().c_str(),
|
||||
Address,
|
||||
Entry.typeName().str().c_str(),
|
||||
Entry.addend())
|
||||
outs() << left_justify(SegmentName, 8) << " "
|
||||
<< left_justify(SectionName, 18) << " "
|
||||
<< format_hex(Address, 10, true) << " "
|
||||
<< left_justify(Entry.typeName(), 8) << " "
|
||||
<< format_decimal(Entry.addend(), 8) << " "
|
||||
<< Entry.symbolName() << "\n";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user