Skip to content

Commit 5c5d2c9

Browse files
jankratochvilmemfrob
authored andcommitted
[nfc] [llvm] Make DWARFListTableBase::findList const
Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D99731
1 parent 6ce3a02 commit 5c5d2c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ template <typename DWARFListType> class DWARFListTableBase {
170170
Error extract(DWARFDataExtractor Data, uint64_t *OffsetPtr);
171171
/// Look up a list based on a given offset. Extract it and enter it into the
172172
/// list map if necessary.
173-
Expected<DWARFListType> findList(DWARFDataExtractor Data, uint64_t Offset);
173+
Expected<DWARFListType> findList(DWARFDataExtractor Data,
174+
uint64_t Offset) const;
174175

175176
uint64_t getHeaderOffset() const { return Header.getHeaderOffset(); }
176177
uint8_t getAddrSize() const { return Header.getAddrSize(); }
@@ -275,7 +276,7 @@ void DWARFListTableBase<DWARFListType>::dump(
275276
template <typename DWARFListType>
276277
Expected<DWARFListType>
277278
DWARFListTableBase<DWARFListType>::findList(DWARFDataExtractor Data,
278-
uint64_t Offset) {
279+
uint64_t Offset) const {
279280
// Extract the list from the section and enter it into the list map.
280281
DWARFListType List;
281282
if (Header.length())

0 commit comments

Comments
 (0)