[PATCH] D36319: [DebugInfo][DWARF] Correct some usages of PRIx32 to PRIx64

Simon Dardis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 08:38:59 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL310262: [DebugInfo][DWARF] Correct some usages of PRIx32 to PRIx64 (authored by sdardis).

Repository:
  rL LLVM

https://reviews.llvm.org/D36319

Files:
  llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp


Index: llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp
===================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp
@@ -253,7 +253,7 @@
         ++NumErrors;
         OS << "error: DW_AT_stmt_list offset is beyond .debug_line "
               "bounds: "
-           << format("0x%08" PRIx32, *SectionOffset) << "\n";
+           << format("0x%08" PRIx64, *SectionOffset) << "\n";
         Die.dump(OS, 0);
         OS << "\n";
       }
@@ -292,7 +292,7 @@
       if (CUOffset >= CUSize) {
         ++NumErrors;
         OS << "error: " << FormEncodingString(Form) << " CU offset "
-           << format("0x%08" PRIx32, CUOffset)
+           << format("0x%08" PRIx64, CUOffset)
            << " is invalid (must be less than CU size of "
            << format("0x%08" PRIx32, CUSize) << "):\n";
         Die.dump(OS, 0);
@@ -424,7 +424,7 @@
       if (Row.Address < PrevAddress) {
         ++NumDebugLineErrors;
         OS << "error: .debug_line["
-           << format("0x%08" PRIx32,
+           << format("0x%08" PRIx64,
                      *toSectionOffset(Die.find(DW_AT_stmt_list)))
            << "] row[" << RowIndex
            << "] decreases in address from previous row:\n";
@@ -439,7 +439,7 @@
       if (Row.File > MaxFileIndex) {
         ++NumDebugLineErrors;
         OS << "error: .debug_line["
-           << format("0x%08" PRIx32,
+           << format("0x%08" PRIx64,
                      *toSectionOffset(Die.find(DW_AT_stmt_list)))
            << "][" << RowIndex << "] has invalid file index " << Row.File
            << " (valid values are [1," << MaxFileIndex << "]):\n";


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36319.110008.patch
Type: text/x-patch
Size: 1715 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170807/9ce20900/attachment.bin>


More information about the llvm-commits mailing list