mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 07:59:57 +00:00
fix r265645: target dependent printf formatting flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265649 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e6557575bb
commit
393a60e73a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user