[llvm] 49d7b2b - [DWARF] Remove parseListTableHeader (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 19 23:34:27 PDT 2021
Author: Kazu Hirata
Date: 2021-08-19T23:34:22-07:00
New Revision: 49d7b2beae23013cfb8fb99e318d571a0c6ae7e7
URL: https://github.com/llvm/llvm-project/commit/49d7b2beae23013cfb8fb99e318d571a0c6ae7e7
DIFF: https://github.com/llvm/llvm-project/commit/49d7b2beae23013cfb8fb99e318d571a0c6ae7e7.diff
LOG: [DWARF] Remove parseListTableHeader (NFC)
The last use was removed on Oct 4, 2020 in commit
6d0be74af5555f7bc56ac72cbd98ff270fd1291b.
Added:
Modified:
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
index f17dacfce665..f6bad56f6bfa 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
@@ -349,29 +349,6 @@ bool DWARFUnitHeader::applyIndexEntry(const DWARFUnitIndex::Entry *Entry) {
return true;
}
-// Parse the rangelist table header, including the optional array of offsets
-// following it (DWARF v5 and later).
-template<typename ListTableType>
-static Expected<ListTableType>
-parseListTableHeader(DWARFDataExtractor &DA, uint64_t Offset,
- DwarfFormat Format) {
- // We are expected to be called with Offset 0 or pointing just past the table
- // header. Correct Offset in the latter case so that it points to the start
- // of the header.
- if (Offset > 0) {
- uint64_t HeaderSize = DWARFListTableHeader::getHeaderSize(Format);
- if (Offset < HeaderSize)
- return createStringError(errc::invalid_argument, "did not detect a valid"
- " list table with base = 0x%" PRIx64 "\n",
- Offset);
- Offset -= HeaderSize;
- }
- ListTableType Table;
- if (Error E = Table.extractHeaderAndOffsets(DA, &Offset))
- return std::move(E);
- return Table;
-}
-
Error DWARFUnit::extractRangeList(uint64_t RangeListOffset,
DWARFDebugRangeList &RangeList) const {
// Require that compile unit is extracted.
More information about the llvm-commits
mailing list