aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/DWARFDebugRangeList.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-08-27 10:10:10 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-08-27 10:10:10 +0000
commit37338a83520d36a5dbc9ed8bbc44d0a0dbcecd15 (patch)
treeb65ab26982d7989e243b541f426e800b19497289 /llvm/lib/DebugInfo/DWARFDebugRangeList.cpp
parent10eb4cfc3eb1d01bf8e45a14f9baeb3040aed55f (diff)
downloadllvm-37338a83520d36a5dbc9ed8bbc44d0a0dbcecd15.zip
llvm-37338a83520d36a5dbc9ed8bbc44d0a0dbcecd15.tar.gz
llvm-37338a83520d36a5dbc9ed8bbc44d0a0dbcecd15.tar.bz2
DWARFDebugRangeList.cpp: Use PRIx64 for uint64_t as format string.
llvm-svn: 162665
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugRangeList.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugRangeList.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugRangeList.cpp b/llvm/lib/DebugInfo/DWARFDebugRangeList.cpp
index 10f51b4..8012e30 100644
--- a/llvm/lib/DebugInfo/DWARFDebugRangeList.cpp
+++ b/llvm/lib/DebugInfo/DWARFDebugRangeList.cpp
@@ -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);
}