[PATCH] D99731: [nfc] [llvm] Make DWARFListTableBase::findList const

Jan Kratochvil via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 1 07:41:34 PDT 2021


jankratochvil created this revision.
jankratochvil added a reviewer: dblaikie.
jankratochvil added a project: LLVM.
Herald added a subscriber: kristof.beyls.
jankratochvil requested review of this revision.

Needed for D99653 <https://reviews.llvm.org/D99653>, it looks harmless to me.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99731

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


Index: llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h
===================================================================
--- llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h
+++ 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<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 @@
 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())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99731.334687.patch
Type: text/x-patch
Size: 1172 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210401/4da53a4d/attachment.bin>


More information about the llvm-commits mailing list