File tree 1 file changed +7
-7
lines changed
lldb/source/Plugins/SymbolFile/DWARF
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,17 @@ DebugNamesDWARFIndex::GetUnits(const DebugNames &debug_names) {
49
49
50
50
std::optional<DIERef>
51
51
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 )
58
58
return std::nullopt;
59
59
}
60
60
61
61
DWARFUnit *cu =
62
- m_debug_info.GetUnitAtOffset (DIERef::Section::DebugInfo, *cu_offset );
62
+ m_debug_info.GetUnitAtOffset (DIERef::Section::DebugInfo, *unit_offset );
63
63
if (!cu)
64
64
return std::nullopt;
65
65
You can’t perform that action at this time.
0 commit comments