[llvm] r310253 - [DebugInfo][DWARF] Use PRIx64 explicitly in output.
Simon Dardis via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 06:30:04 PDT 2017
Author: sdardis
Date: Mon Aug 7 06:30:03 2017
New Revision: 310253
URL: http://llvm.org/viewvc/llvm-project?rev=310253&view=rev
Log:
[DebugInfo][DWARF] Use PRIx64 explicitly in output.
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp?rev=310253&r1=310252&r2=310253&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp Mon Aug 7 06:30:03 2017
@@ -136,13 +136,13 @@ dumpDWARFv5StringOffsetsSection(raw_ostr
uint64_t StringOffset =
StrOffsetExt.getRelocatedValue(EntrySize, &Offset);
if (Format == DWARF32) {
- OS << format("%8.8x ", StringOffset);
+ OS << format("%8.8" PRIx64 " ", StringOffset);
uint32_t StringOffset32 = (uint32_t)StringOffset;
const char *S = StrData.getCStr(&StringOffset32);
if (S)
OS << format("\"%s\"", S);
} else
- OS << format("%16.16x ", StringOffset);
+ OS << format("%16.16" PRIx64 " ", StringOffset);
OS << "\n";
}
}
More information about the llvm-commits
mailing list