[llvm] 942cf22 - [nfc] [llvm] Make DWARFListTableBase::findList const
Jan Kratochvil via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 2 12:41:56 PDT 2021
Author: Jan Kratochvil
Date: 2021-04-02T21:41:47+02:00
New Revision: 942cf225650928734e645078beb039b6108080d2
URL: https://github.com/llvm/llvm-project/commit/942cf225650928734e645078beb039b6108080d2
DIFF: https://github.com/llvm/llvm-project/commit/942cf225650928734e645078beb039b6108080d2.diff
LOG: [nfc] [llvm] Make DWARFListTableBase::findList const
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D99731
Added:
Modified:
llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h
index 53f3c754c206..8f0c0ce3c8e8 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h
@@ -170,7 +170,8 @@ template <typename DWARFListType> class DWARFListTableBase {
Error extract(DWARFDataExtractor Data, uint64_t *OffsetPtr);
/// Look up a list based on a given offset. Extract it and enter it into the
/// list map if necessary.
- Expected<DWARFListType> findList(DWARFDataExtractor Data, uint64_t Offset);
+ Expected<DWARFListType> findList(DWARFDataExtractor Data,
+ uint64_t Offset) const;
uint64_t getHeaderOffset() const { return Header.getHeaderOffset(); }
uint8_t getAddrSize() const { return Header.getAddrSize(); }
@@ -275,7 +276,7 @@ void DWARFListTableBase<DWARFListType>::dump(
template <typename DWARFListType>
Expected<DWARFListType>
DWARFListTableBase<DWARFListType>::findList(DWARFDataExtractor Data,
- uint64_t Offset) {
+ uint64_t Offset) const {
// Extract the list from the section and enter it into the list map.
DWARFListType List;
if (Header.length())
More information about the llvm-commits
mailing list