llvm.org GIT mirror llvm / 0bb8aa2
COFFDumper: Print uint64_t with the right format string. I wish we could typecheck llvm::format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185766 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 7 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
478478
479479 StringRef Sym;
480480 if (resolveSymbolName(Rels, Offset, Sym)) {
481 Str << format(" (0x%X)", Offset);
481 Str << format(" (0x%" PRIX64 ")", Offset);
482482 return Str.str();
483483 }
484484
485485 Str << Sym;
486486 if (Disp > 0) {
487 Str << format(" +0x%X (0x%X)", Disp, Offset);
487 Str << format(" +0x%X (0x%" PRIX64 ")", Disp, Offset);
488488 } else {
489 Str << format(" (0x%X)", Offset);
489 Str << format(" (0x%" PRIX64 ")", Offset);
490490 }
491491
492492 return Str.str();