Also use the portable (ugly) format string macros, for MSVC compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169396
91177308-0d34-0410-b5e6-
96231b3b80d8
#ifndef LLVM_MC_MCINSTPRINTER_H
#define LLVM_MC_MCINSTPRINTER_H
+#include "llvm/Support/DataTypes.h"
#include "llvm/Support/Format.h"
namespace llvm {
/// Utility function to print immediates in decimal or hex.
format_object1<int64_t> MCInstPrinter::formatImm(const int64_t Value) const {
if (getPrintImmHex())
- return format("0x%llx", Value);
+ return format("0x%" PRIx64, Value);
else
- return format("%lld", Value);
+ return format("%" PRId64, Value);
}