mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 11:51:13 +00:00
Try to unbreak the build on hosts that don't transitively pull in a definition for int64_t.
Also use the portable (ugly) format string macros, for MSVC compatibility. llvm-svn: 169396
This commit is contained in:
parent
75ccdbb1dc
commit
e66030212a
@ -10,6 +10,7 @@
|
|||||||
#ifndef LLVM_MC_MCINSTPRINTER_H
|
#ifndef LLVM_MC_MCINSTPRINTER_H
|
||||||
#define LLVM_MC_MCINSTPRINTER_H
|
#define LLVM_MC_MCINSTPRINTER_H
|
||||||
|
|
||||||
|
#include "llvm/Support/DataTypes.h"
|
||||||
#include "llvm/Support/Format.h"
|
#include "llvm/Support/Format.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
@ -55,7 +55,7 @@ StringRef MCInstPrinter::markup(StringRef a, StringRef b) const {
|
|||||||
/// Utility function to print immediates in decimal or hex.
|
/// Utility function to print immediates in decimal or hex.
|
||||||
format_object1<int64_t> MCInstPrinter::formatImm(const int64_t Value) const {
|
format_object1<int64_t> MCInstPrinter::formatImm(const int64_t Value) const {
|
||||||
if (getPrintImmHex())
|
if (getPrintImmHex())
|
||||||
return format("0x%llx", Value);
|
return format("0x%" PRIx64, Value);
|
||||||
else
|
else
|
||||||
return format("%lld", Value);
|
return format("%" PRId64, Value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user