summaryrefslogtreecommitdiff
path: root/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
commit83e2546ad3fd75dca35dc3cdbf8f0d085d57e189 (patch)
tree5f9c45e1337c35d8b0ae7ccfe98b66685cd5473d /lib/DebugInfo/DWARFDebugRangeList.cpp
parentfdc35405cdaf7e21b736857396ebe30ebfb4b142 (diff)
downloadllvm-83e2546ad3fd75dca35dc3cdbf8f0d085d57e189.tar.gz
llvm-83e2546ad3fd75dca35dc3cdbf8f0d085d57e189.tar.bz2
llvm-83e2546ad3fd75dca35dc3cdbf8f0d085d57e189.tar.xz
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
Diffstat (limited to 'lib/DebugInfo/DWARFDebugRangeList.cpp')
-rw-r--r--lib/DebugInfo/DWARFDebugRangeList.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/DebugInfo/DWARFDebugRangeList.cpp b/lib/DebugInfo/DWARFDebugRangeList.cpp
index 10f51b4aa0..8012e306c7 100644
--- a/lib/DebugInfo/DWARFDebugRangeList.cpp
+++ b/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);
}