[llvm] r324223 - Fix more print format specifiers in debug_rnglists dumping
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 02:47:13 PST 2018
Author: jhenderson
Date: Mon Feb 5 02:47:13 2018
New Revision: 324223
URL: http://llvm.org/viewvc/llvm-project?rev=324223&view=rev
Log:
Fix more print format specifiers in debug_rnglists dumping
See also r324096.
I have made the assumption that DWARF64 is not an issue for the time
being with these fixes.
Modified:
llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h
llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
Modified: llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h?rev=324223&r1=324222&r2=324223&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h Mon Feb 5 02:47:13 2018
@@ -40,7 +40,7 @@ private:
};
Header HeaderData;
- std::vector<uint64_t> Offsets;
+ std::vector<uint32_t> Offsets;
std::vector<DWARFAddressRangesVector> Ranges;
public:
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp?rev=324223&r1=324222&r2=324223&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp Mon Feb 5 02:47:13 2018
@@ -161,16 +161,18 @@ Error DWARFDebugRnglists::extract(DWARFD
void DWARFDebugRnglists::dump(raw_ostream &OS) const {
// TODO: Add verbose printing of the raw encodings.
- OS << format("Range List Header: length = 0x%8.8x, version = 0x%4.4x, "
- "addr_size = 0x%2.2x, seg_size = 0x%2.2x, offset_entry_count = "
- "0x%8.8x\n",
+ OS << format("Range List Header: length = 0x%8.8" PRIx32
+ ", version = 0x%4.4" PRIx16 ", "
+ "addr_size = 0x%2.2" PRIx8 ", seg_size = 0x%2.2" PRIx8
+ ", offset_entry_count = "
+ "0x%8.8" PRIx32 "\n",
HeaderData.Length, HeaderData.Version, HeaderData.AddrSize,
HeaderData.SegSize, HeaderData.OffsetEntryCount);
if (HeaderData.OffsetEntryCount > 0) {
OS << "Offsets: [";
for (const auto &Off : Offsets)
- OS << format("\n0x%8.8x", Off);
+ OS << format("\n0x%8.8" PRIx32, Off);
OS << "\n]\n";
}
OS << "Ranges:\n";
More information about the llvm-commits
mailing list