mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Fixes r142984, r143120 and r143191 for PPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143447 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -192,9 +192,9 @@ static void SortAndPrintSymbolList() {
|
||||
strcpy(SymbolSizeStr, " ");
|
||||
|
||||
if (i->Address != object::UnknownAddressOrSize)
|
||||
format("%08x", i->Address).print(SymbolAddrStr, sizeof(SymbolAddrStr));
|
||||
format("%08"PRIx64, i->Address).print(SymbolAddrStr, sizeof(SymbolAddrStr));
|
||||
if (i->Size != object::UnknownAddressOrSize)
|
||||
format("%08x", i->Size).print(SymbolSizeStr, sizeof(SymbolSizeStr));
|
||||
format("%08"PRIx64, i->Size).print(SymbolSizeStr, sizeof(SymbolSizeStr));
|
||||
|
||||
if (OutputFormat == posix) {
|
||||
outs() << i->Name << " " << i->TypeChar << " "
|
||||
|
||||
@@ -285,7 +285,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
||||
|
||||
if (DisAsm->getInstruction(Inst, Size, memoryObject, Index,
|
||||
DebugOut, nulls())) {
|
||||
outs() << format("%8x:\t", SectionAddr + Index);
|
||||
outs() << format("%8"PRIx64":\t", SectionAddr + Index);
|
||||
DumpBytes(StringRef(Bytes.data() + Index, Size));
|
||||
IP->printInst(&Inst, outs(), "");
|
||||
outs() << "\n";
|
||||
@@ -306,7 +306,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
||||
if (error(rel_cur->getTypeName(name))) goto skip_print_rel;
|
||||
if (error(rel_cur->getValueString(val))) goto skip_print_rel;
|
||||
|
||||
outs() << format("\t\t\t%8x: ", SectionAddr + addr) << name << "\t"
|
||||
outs() << format("\t\t\t%8"PRIx64": ", SectionAddr + addr) << name << "\t"
|
||||
<< val << "\n";
|
||||
|
||||
skip_print_rel:
|
||||
|
||||
Reference in New Issue
Block a user