[llvm] r265649 - fix r265645: target dependent printf formatting flags.
Valery Pykhtin via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 01:38:20 PDT 2016
Author: vpykhtin
Date: Thu Apr 7 03:38:20 2016
New Revision: 265649
URL: http://llvm.org/viewvc/llvm-project?rev=265649&view=rev
Log:
fix r265645: target dependent printf formatting flags.
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=265649&r1=265648&r2=265649&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp Thu Apr 7 03:38:20 2016
@@ -410,13 +410,13 @@ public:
IP.printInst(MI, IS, "", STI);
- OS << left_justify(IS.str(), 60) << format("// %012X: ", Address);
+ OS << left_justify(IS.str(), 60) << format("// %012" PRIX64 ": ", Address);
typedef support::ulittle32_t U32;
for (auto D : makeArrayRef(reinterpret_cast<const U32*>(Bytes.data()),
Bytes.size() / sizeof(U32)))
// D should be explicitly casted to uint32_t here as it is passed
// by format to snprintf as vararg.
- OS << format("%08X ", static_cast<uint32_t>(D));
+ OS << format("%08" PRIX32 " ", static_cast<uint32_t>(D));
if (!Annot.empty())
OS << "// " << Annot;
More information about the llvm-commits
mailing list