[llvm-commits] [llvm] r143120 - /llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Stepan Dyatkovskiy
stpworld at narod.ru
Thu Oct 27 11:40:45 PDT 2011
Author: dyatkovskiy
Date: Thu Oct 27 13:40:45 2011
New Revision: 143120
URL: http://llvm.org/viewvc/llvm-project?rev=143120&view=rev
Log:
Fixed llvm-objdump uint64_t formatted output.
Modified:
llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Modified: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp?rev=143120&r1=143119&r2=143120&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp Thu Oct 27 13:40:45 2011
@@ -289,7 +289,7 @@
if (DisAsm->getInstruction(Inst, Size, memoryObject, Index,
DebugOut, nulls())) {
- outs() << format("%8x:\t", SectionAddr + Index);
+ outs() << format("%8llx:\t", SectionAddr + Index);
DumpBytes(StringRef(Bytes.data() + Index, Size));
IP->printInst(&Inst, outs(), "");
outs() << "\n";
@@ -316,7 +316,7 @@
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%8llx: ", SectionAddr + addr) << name << "\t"
<< val << "\n";
skip_print_rel:
@@ -400,7 +400,7 @@
// Dump out the content as hex and printable ascii characters.
for (std::size_t addr = 0, end = Contents.size(); addr < end; addr += 16) {
- outs() << format(" %04x ", BaseAddr + addr);
+ outs() << format(" %04llx ", BaseAddr + addr);
// Dump line of hex.
for (std::size_t i = 0; i < 16; ++i) {
if (i != 0 && i % 4 == 0)
@@ -506,7 +506,7 @@
else if (Type == SymbolRef::ST_Function)
FileFunc = 'F';
- outs() << format("%08x", Offset) << " "
+ outs() << format("%08llx", Offset) << " "
<< GlobLoc // Local -> 'l', Global -> 'g', Neither -> ' '
<< (Weak ? 'w' : ' ') // Weak?
<< ' ' // Constructor. Not supported yet.
@@ -526,7 +526,7 @@
outs() << SectionName;
}
outs() << '\t'
- << format("%08x ", Size)
+ << format("%08llx ", Size)
<< Name
<< '\n';
}
More information about the llvm-commits
mailing list