mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
DWARFDebugRangeList.cpp: Use PRIx64 for uint64_t as format string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162665 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fdc35405cd
commit
83e2546ad3
@ -49,8 +49,9 @@ bool DWARFDebugRangeList::extract(DataExtractor data, uint32_t *offset_ptr) {
|
|||||||
|
|
||||||
void DWARFDebugRangeList::dump(raw_ostream &OS) const {
|
void DWARFDebugRangeList::dump(raw_ostream &OS) const {
|
||||||
for (int i = 0, n = Entries.size(); i != n; ++i) {
|
for (int i = 0, n = Entries.size(); i != n; ++i) {
|
||||||
const char *format_str = (AddressSize == 4) ? "%08x %08x %08x\n"
|
const char *format_str = (AddressSize == 4
|
||||||
: "%08x %016x %016x\n";
|
? "%08x %08"PRIx64" %08"PRIx64"\n"
|
||||||
|
: "%08x %016"PRIx64" %016"PRIx64"\n");
|
||||||
OS << format(format_str, Offset, Entries[i].StartAddress,
|
OS << format(format_str, Offset, Entries[i].StartAddress,
|
||||||
Entries[i].EndAddress);
|
Entries[i].EndAddress);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user