Skip to content

Commit 0efa7cc

Browse files
committed
Change "cu_offset" to "unit_offset".
1 parent af4e8cc commit 0efa7cc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ DebugNamesDWARFIndex::GetUnits(const DebugNames &debug_names) {
4949

5050
std::optional<DIERef>
5151
DebugNamesDWARFIndex::ToDIERef(const DebugNames::Entry &entry) {
52-
// Look for a CU offset or a local TU offset as they are both offsets into
53-
// the .debug_info section.
54-
std::optional<uint64_t> cu_offset = entry.getCUOffset();
55-
if (!cu_offset) {
56-
cu_offset = entry.getLocalTUOffset();
57-
if (!cu_offset)
52+
// Look for a DWARF unit offset (CU offset or local TU offset) as they are
53+
// both offsets into the .debug_info section.
54+
std::optional<uint64_t> unit_offset = entry.getCUOffset();
55+
if (!unit_offset) {
56+
unit_offset = entry.getLocalTUOffset();
57+
if (!unit_offset)
5858
return std::nullopt;
5959
}
6060

6161
DWARFUnit *cu =
62-
m_debug_info.GetUnitAtOffset(DIERef::Section::DebugInfo, *cu_offset);
62+
m_debug_info.GetUnitAtOffset(DIERef::Section::DebugInfo, *unit_offset);
6363
if (!cu)
6464
return std::nullopt;
6565

0 commit comments

Comments
 (0)