forked from OSchip/llvm-project
DWARFDebugRangeList.cpp: Use PRIx64 for uint64_t as format string.
llvm-svn: 162665
This commit is contained in:
parent
10eb4cfc3e
commit
37338a8352
|
@ -49,8 +49,9 @@ bool DWARFDebugRangeList::extract(DataExtractor data, uint32_t *offset_ptr) {
|
|||
|
||||
void DWARFDebugRangeList::dump(raw_ostream &OS) const {
|
||||
for (int i = 0, n = Entries.size(); i != n; ++i) {
|
||||
const char *format_str = (AddressSize == 4) ? "%08x %08x %08x\n"
|
||||
: "%08x %016x %016x\n";
|
||||
const char *format_str = (AddressSize == 4
|
||||
? "%08x %08"PRIx64" %08"PRIx64"\n"
|
||||
: "%08x %016"PRIx64" %016"PRIx64"\n");
|
||||
OS << format(format_str, Offset, Entries[i].StartAddress,
|
||||
Entries[i].EndAddress);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue