[llvm-commits] [llvm] r162665 - /llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp

NAKAMURA Takumi geek4civic at gmail.com
Mon Aug 27 03:10:10 PDT 2012


Author: chapuni
Date: Mon Aug 27 05:10:10 2012
New Revision: 162665

URL: http://llvm.org/viewvc/llvm-project?rev=162665&view=rev
Log:
DWARFDebugRangeList.cpp: Use PRIx64 for uint64_t as format string.

Modified:
    llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp

Modified: llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp?rev=162665&r1=162664&r2=162665&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp Mon Aug 27 05:10:10 2012
@@ -49,8 +49,9 @@
 
 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);
   }





More information about the llvm-commits mailing list