Skip to content

Commit 8f40783

Browse files
[lldb][nfc] Mark function as const (#76974)
This function has no mutable behavior
1 parent 852596d commit 8f40783

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ DebugNamesDWARFIndex::GetUnits(const DebugNames &debug_names) {
4848
}
4949

5050
std::optional<DIERef>
51-
DebugNamesDWARFIndex::ToDIERef(const DebugNames::Entry &entry) {
51+
DebugNamesDWARFIndex::ToDIERef(const DebugNames::Entry &entry) const {
5252
// Look for a DWARF unit offset (CU offset or local TU offset) as they are
5353
// both offsets into the .debug_info section.
5454
std::optional<uint64_t> unit_offset = entry.getCUOffset();

lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class DebugNamesDWARFIndex : public DWARFIndex {
7979
std::unique_ptr<DebugNames> m_debug_names_up;
8080
ManualDWARFIndex m_fallback;
8181

82-
std::optional<DIERef> ToDIERef(const DebugNames::Entry &entry);
82+
std::optional<DIERef> ToDIERef(const DebugNames::Entry &entry) const;
8383
bool ProcessEntry(const DebugNames::Entry &entry,
8484
llvm::function_ref<bool(DWARFDIE die)> callback);
8585

0 commit comments

Comments
 (0)