[llvm] r324096 - Fix type sizes that were causing incorrect string formatting
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 2 07:09:32 PST 2018
Author: jhenderson
Date: Fri Feb 2 07:09:31 2018
New Revision: 324096
URL: http://llvm.org/viewvc/llvm-project?rev=324096&view=rev
Log:
Fix type sizes that were causing incorrect string formatting
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=324096&r1=324095&r2=324096&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h Fri Feb 2 07:09:31 2018
@@ -51,7 +51,7 @@ public:
/// Returns the length of this table, including the length field, or 0 if the
/// length has not been determined (e.g. because the table has not yet been
/// parsed, or there was a problem in parsing).
- uint64_t length() const;
+ uint32_t length() const;
};
} // end namespace llvm
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp?rev=324096&r1=324095&r2=324096&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp Fri Feb 2 07:09:31 2018
@@ -47,7 +47,7 @@ Error DWARFDebugRnglists::extract(DWARFD
" has too small length (0x%" PRIx32
") to contain a complete header",
TableOffset, length());
- uint64_t End = TableOffset + length();
+ uint32_t End = TableOffset + length();
if (!Data.isValidOffsetForDataOfSize(TableOffset, End - TableOffset))
return createError(
"section is not large enough to contain a .debug_rnglists table "
@@ -184,7 +184,7 @@ void DWARFDebugRnglists::dump(raw_ostrea
}
}
-uint64_t DWARFDebugRnglists::length() const {
+uint32_t DWARFDebugRnglists::length() const {
if (HeaderData.Length == 0)
return 0;
// TODO: DWARF64 support.
More information about the llvm-commits
mailing list