Skip to content

Commit af31f9f

Browse files
committed
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
1 parent fb4b8fe commit af31f9f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/llvm-nm/llvm-nm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ static void SortAndPrintSymbolList() {
192192
strcpy(SymbolSizeStr, " ");
193193

194194
if (i->Address != object::UnknownAddressOrSize)
195-
format("%08x", i->Address).print(SymbolAddrStr, sizeof(SymbolAddrStr));
195+
format("%08"PRIx64, i->Address).print(SymbolAddrStr, sizeof(SymbolAddrStr));
196196
if (i->Size != object::UnknownAddressOrSize)
197-
format("%08x", i->Size).print(SymbolSizeStr, sizeof(SymbolSizeStr));
197+
format("%08"PRIx64, i->Size).print(SymbolSizeStr, sizeof(SymbolSizeStr));
198198

199199
if (OutputFormat == posix) {
200200
outs() << i->Name << " " << i->TypeChar << " "

tools/llvm-objdump/llvm-objdump.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
285285

286286
if (DisAsm->getInstruction(Inst, Size, memoryObject, Index,
287287
DebugOut, nulls())) {
288-
outs() << format("%8x:\t", SectionAddr + Index);
288+
outs() << format("%8"PRIx64":\t", SectionAddr + Index);
289289
DumpBytes(StringRef(Bytes.data() + Index, Size));
290290
IP->printInst(&Inst, outs(), "");
291291
outs() << "\n";
@@ -306,7 +306,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
306306
if (error(rel_cur->getTypeName(name))) goto skip_print_rel;
307307
if (error(rel_cur->getValueString(val))) goto skip_print_rel;
308308

309-
outs() << format("\t\t\t%8x: ", SectionAddr + addr) << name << "\t"
309+
outs() << format("\t\t\t%8"PRIx64": ", SectionAddr + addr) << name << "\t"
310310
<< val << "\n";
311311

312312
skip_print_rel:

0 commit comments

Comments
 (0)