mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
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
This commit is contained in:
parent
24bf7c0db4
commit
0bb8aa29d8
@ -479,15 +479,15 @@ static std::string formatSymbol(const std::vector<RelocationRef> &Rels,
|
||||
|
||||
StringRef Sym;
|
||||
if (resolveSymbolName(Rels, Offset, Sym)) {
|
||||
Str << format(" (0x%X)", Offset);
|
||||
Str << format(" (0x%" PRIX64 ")", Offset);
|
||||
return Str.str();
|
||||
}
|
||||
|
||||
Str << Sym;
|
||||
if (Disp > 0) {
|
||||
Str << format(" +0x%X (0x%X)", Disp, Offset);
|
||||
Str << format(" +0x%X (0x%" PRIX64 ")", Disp, Offset);
|
||||
} else {
|
||||
Str << format(" (0x%X)", Offset);
|
||||
Str << format(" (0x%" PRIX64 ")", Offset);
|
||||
}
|
||||
|
||||
return Str.str();
|
||||
|
Loading…
Reference in New Issue
Block a user