@@ -161,27 +161,24 @@ void ManualDWARFIndex::IndexUnit(DWARFUnit &unit, SymbolFileDWARFDwo *dwp,
161
161
// though as some functions have template parameter types and other things
162
162
// that cause extra copies of types to be included, but we should find these
163
163
// types in the .dwo file only as methods could have return types removed and
164
- // we don't have to index incomplete types from the skeleton compile unit.
164
+ // we don't have to index incomplete types from the skeletone compile unit.
165
165
if (unit.GetDWOId ()) {
166
166
if (SymbolFileDWARFDwo *dwo_symbol_file = unit.GetDwoSymbolFile ()) {
167
167
// Type units in a dwp file are indexed separately, so we just need to
168
- // process the split unit here. However, if the split unit is in a dwo
169
- // file, then we need to process type units here.
168
+ // process the split unit here. However, if the split unit is in a dwo file,
169
+ // then we need to process type units here.
170
170
if (dwo_symbol_file == dwp) {
171
171
IndexUnitImpl (unit.GetNonSkeletonUnit (), cu_language, set);
172
172
} else {
173
173
DWARFDebugInfo &dwo_info = dwo_symbol_file->DebugInfo ();
174
174
for (size_t i = 0 ; i < dwo_info.GetNumUnits (); ++i)
175
175
IndexUnitImpl (*dwo_info.GetUnitAtIndex (i), cu_language, set);
176
176
}
177
- return ;
178
177
}
179
- // The unit has a dwo_id, but this isn't a .dwo skeleton unit, so
180
- // the assumption is that this is a file produced by -gmodules and
181
- // that we want to index it.
178
+ } else {
179
+ // We either have a normal compile unit which we want to index.
180
+ IndexUnitImpl (unit, cu_language, set);
182
181
}
183
- // We have a normal compile unit which we want to index.
184
- IndexUnitImpl (unit, cu_language, set);
185
182
}
186
183
187
184
void ManualDWARFIndex::IndexUnitImpl (DWARFUnit &unit,
0 commit comments