fix r265645: target dependent printf formatting flags.
authorValery Pykhtin <Valery.Pykhtin@amd.com>
Thu, 7 Apr 2016 08:38:20 +0000 (08:38 +0000)
committerValery Pykhtin <Valery.Pykhtin@amd.com>
Thu, 7 Apr 2016 08:38:20 +0000 (08:38 +0000)
llvm-svn: 265649

llvm/tools/llvm-objdump/llvm-objdump.cpp

index 6c26b45..6eab69c 100644 (file)
@@ -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;