@@ -179,8 +179,8 @@ void DIEBuilder::constructFromUnit(DWARFUnit &DU) {
179
179
}
180
180
181
181
DIEBuilder::DIEBuilder (BinaryContext &BC, DWARFContext *DwarfContext,
182
- bool IsDWO )
183
- : BC(BC), DwarfContext(DwarfContext), IsDWO(IsDWO ) {}
182
+ DWARFUnit *SkeletonCU )
183
+ : BC(BC), DwarfContext(DwarfContext), SkeletonCU(SkeletonCU ) {}
184
184
185
185
static unsigned int getCUNum (DWARFContext *DwarfContext, bool IsDWO) {
186
186
unsigned int CUNum = IsDWO ? DwarfContext->getNumDWOCompileUnits ()
@@ -204,11 +204,11 @@ void DIEBuilder::buildTypeUnits(DebugStrOffsetsWriter *StrOffsetWriter,
204
204
true );
205
205
}
206
206
}
207
- const unsigned int CUNum = getCUNum (DwarfContext, IsDWO );
207
+ const unsigned int CUNum = getCUNum (DwarfContext, isDWO () );
208
208
getState ().CloneUnitCtxMap .resize (CUNum);
209
209
DWARFContext::unit_iterator_range CU4TURanges =
210
- IsDWO ? DwarfContext->dwo_types_section_units ()
211
- : DwarfContext->types_section_units ();
210
+ isDWO () ? DwarfContext->dwo_types_section_units ()
211
+ : DwarfContext->types_section_units ();
212
212
213
213
getState ().Type = ProcessingType::DWARF4TUs;
214
214
for (std::unique_ptr<DWARFUnit> &DU : CU4TURanges)
@@ -218,8 +218,8 @@ void DIEBuilder::buildTypeUnits(DebugStrOffsetsWriter *StrOffsetWriter,
218
218
constructFromUnit (*DU.get ());
219
219
220
220
DWARFContext::unit_iterator_range CURanges =
221
- IsDWO ? DwarfContext->dwo_info_section_units ()
222
- : DwarfContext->info_section_units ();
221
+ isDWO () ? DwarfContext->dwo_info_section_units ()
222
+ : DwarfContext->info_section_units ();
223
223
224
224
// This handles DWARF4 CUs and DWARF5 CU/TUs.
225
225
// Creating a vector so that for reference handling only DWARF5 CU/TUs are
@@ -242,11 +242,11 @@ void DIEBuilder::buildCompileUnits(const bool Init) {
242
242
if (Init)
243
243
BuilderState.reset (new State ());
244
244
245
- unsigned int CUNum = getCUNum (DwarfContext, IsDWO );
245
+ unsigned int CUNum = getCUNum (DwarfContext, isDWO () );
246
246
getState ().CloneUnitCtxMap .resize (CUNum);
247
247
DWARFContext::unit_iterator_range CURanges =
248
- IsDWO ? DwarfContext->dwo_info_section_units ()
249
- : DwarfContext->info_section_units ();
248
+ isDWO () ? DwarfContext->dwo_info_section_units ()
249
+ : DwarfContext->info_section_units ();
250
250
251
251
// This handles DWARF4 CUs and DWARF5 CU/TUs.
252
252
// Creating a vector so that for reference handling only DWARF5 CU/TUs are
0 commit comments