mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Add more PRI.64 macros for MSVC and use them throughout the codebase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -96,13 +96,13 @@ static void PrintObjectSectionSizes(ObjectFile *o) {
|
||||
const char *radix_fmt = 0;
|
||||
switch (Radix) {
|
||||
case octal:
|
||||
radix_fmt = "llo";
|
||||
radix_fmt = PRIo64;
|
||||
break;
|
||||
case decimal:
|
||||
radix_fmt = "llu";
|
||||
radix_fmt = PRIu64;
|
||||
break;
|
||||
case hexadecimal:
|
||||
radix_fmt = "llx";
|
||||
radix_fmt = PRIx64;
|
||||
break;
|
||||
}
|
||||
if (OutputFormat == sysv) {
|
||||
@ -223,8 +223,8 @@ static void PrintObjectSectionSizes(ObjectFile *o) {
|
||||
total_data,
|
||||
total_bss);
|
||||
fmtbuf.clear();
|
||||
fmt << "%7" << (Radix == octal ? "llo" : "llu") << " "
|
||||
<< "%7llx ";
|
||||
fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << " "
|
||||
<< "%7" PRIx64 " ";
|
||||
outs() << format(fmt.str().c_str(),
|
||||
total,
|
||||
total);
|
||||
|
Reference in New Issue
Block a user