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

Jan Kratochvil via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 2 12:41:56 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG942cf2256509: [nfc] [llvm] Make DWARFListTableBase::findList const (authored by jankratochvil).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99731/new/

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.335014.patch
Type: text/x-patch
Size: 1172 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210402/3a65e9da/attachment.bin>


More information about the llvm-commits mailing list