diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-12-05 18:31:11 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-12-05 18:31:11 +0000 |
| commit | 507aca835ea2bf1735e2f89a0904d6f6d0dfdd40 (patch) | |
| tree | 5dc6de63479641c4ba0cd146a9489860cad06c35 /llvm/lib/MC/MCInstPrinter.cpp | |
| parent | a97cec790fc3690a736deccea427ca36e7d88361 (diff) | |
| download | bcm5719-llvm-507aca835ea2bf1735e2f89a0904d6f6d0dfdd40.tar.gz bcm5719-llvm-507aca835ea2bf1735e2f89a0904d6f6d0dfdd40.zip | |
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
Diffstat (limited to 'llvm/lib/MC/MCInstPrinter.cpp')
| -rw-r--r-- | llvm/lib/MC/MCInstPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCInstPrinter.cpp b/llvm/lib/MC/MCInstPrinter.cpp index 7efb3f0ef31..73f30ffb52a 100644 --- a/llvm/lib/MC/MCInstPrinter.cpp +++ b/llvm/lib/MC/MCInstPrinter.cpp @@ -55,7 +55,7 @@ StringRef MCInstPrinter::markup(StringRef a, StringRef b) const { /// 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); } |

