diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h --- a/llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h +++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h @@ -170,7 +170,8 @@ 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 findList(DWARFDataExtractor Data, uint64_t Offset); + Expected 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 @@ template Expected DWARFListTableBase::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())