@@ -192,15 +192,15 @@ DWARFUnit::DWARFUnit(DWARFContext &DC, const DWARFSection &Section,
192
192
bool IsDWO, const DWARFUnitVector &UnitVector)
193
193
: Context(DC), InfoSection(Section), Header(Header), Abbrev(DA),
194
194
RangeSection(RS), LineSection(LS), StringSection(SS),
195
- StringOffsetSection(SOS), AddrOffsetSection(AOS), isLittleEndian (LE),
195
+ StringOffsetSection(SOS), AddrOffsetSection(AOS), IsLittleEndian (LE),
196
196
IsDWO(IsDWO), UnitVector(UnitVector) {
197
197
clear ();
198
198
}
199
199
200
200
DWARFUnit::~DWARFUnit () = default ;
201
201
202
202
DWARFDataExtractor DWARFUnit::getDebugInfoExtractor () const {
203
- return DWARFDataExtractor (Context.getDWARFObj (), InfoSection, isLittleEndian ,
203
+ return DWARFDataExtractor (Context.getDWARFObj (), InfoSection, IsLittleEndian ,
204
204
getAddressByteSize ());
205
205
}
206
206
@@ -222,7 +222,7 @@ DWARFUnit::getAddrOffsetSectionItem(uint32_t Index) const {
222
222
if (AddrOffsetSection->Data .size () < Offset + getAddressByteSize ())
223
223
return None;
224
224
DWARFDataExtractor DA (Context.getDWARFObj (), *AddrOffsetSection,
225
- isLittleEndian , getAddressByteSize ());
225
+ IsLittleEndian , getAddressByteSize ());
226
226
uint64_t Section;
227
227
uint64_t Address = DA.getRelocatedAddress (&Offset, &Section);
228
228
return {{Address, Section}};
@@ -240,7 +240,7 @@ Expected<uint64_t> DWARFUnit::getStringOffsetSectionItem(uint32_t Index) const {
240
240
" , which is too large" ,
241
241
inconvertibleErrorCode ());
242
242
DWARFDataExtractor DA (Context.getDWARFObj (), StringOffsetSection,
243
- isLittleEndian , 0 );
243
+ IsLittleEndian , 0 );
244
244
return DA.getRelocatedValue (ItemSize, &Offset);
245
245
}
246
246
@@ -367,7 +367,7 @@ Error DWARFUnit::extractRangeList(uint64_t RangeListOffset,
367
367
// Require that compile unit is extracted.
368
368
assert (!DieArray.empty ());
369
369
DWARFDataExtractor RangesData (Context.getDWARFObj (), *RangeSection,
370
- isLittleEndian , getAddressByteSize ());
370
+ IsLittleEndian , getAddressByteSize ());
371
371
uint64_t ActualRangeListOffset = RangeSectionBase + RangeListOffset;
372
372
return RangeList.extract (RangesData, &ActualRangeListOffset);
373
373
}
@@ -521,7 +521,7 @@ Error DWARFUnit::tryExtractDIEsIfNeeded(bool CUDieOnly) {
521
521
// In both cases we need to determine the format of the contribution,
522
522
// which may differ from the unit's format.
523
523
DWARFDataExtractor DA (Context.getDWARFObj (), StringOffsetSection,
524
- isLittleEndian , 0 );
524
+ IsLittleEndian , 0 );
525
525
if (IsDWO || getVersion () >= 5 ) {
526
526
auto StringOffsetOrError =
527
527
IsDWO ? determineStringOffsetsTableContributionDWO (DA)
@@ -566,20 +566,20 @@ Error DWARFUnit::tryExtractDIEsIfNeeded(bool CUDieOnly) {
566
566
Header.getVersion () >= 5 ? DW_SECT_LOCLISTS : DW_SECT_EXT_LOC))
567
567
Data = Data.substr (C->Offset , C->Length );
568
568
569
- DWARFDataExtractor DWARFData (Data, isLittleEndian , getAddressByteSize ());
569
+ DWARFDataExtractor DWARFData (Data, IsLittleEndian , getAddressByteSize ());
570
570
LocTable =
571
571
std::make_unique<DWARFDebugLoclists>(DWARFData, Header.getVersion ());
572
572
LocSectionBase = DWARFListTableHeader::getHeaderSize (Header.getFormat ());
573
573
} else if (getVersion () >= 5 ) {
574
574
LocTable = std::make_unique<DWARFDebugLoclists>(
575
575
DWARFDataExtractor (Context.getDWARFObj (),
576
576
Context.getDWARFObj ().getLoclistsSection (),
577
- isLittleEndian , getAddressByteSize ()),
577
+ IsLittleEndian , getAddressByteSize ()),
578
578
getVersion ());
579
579
} else {
580
580
LocTable = std::make_unique<DWARFDebugLoc>(DWARFDataExtractor (
581
581
Context.getDWARFObj (), Context.getDWARFObj ().getLocSection (),
582
- isLittleEndian , getAddressByteSize ()));
582
+ IsLittleEndian , getAddressByteSize ()));
583
583
}
584
584
585
585
// Don't fall back to DW_AT_GNU_ranges_base: it should be ignored for
@@ -650,7 +650,7 @@ DWARFUnit::findRnglistFromOffset(uint64_t Offset) {
650
650
return RangeList.getAbsoluteRanges (getBaseAddress ());
651
651
}
652
652
DWARFDataExtractor RangesData (Context.getDWARFObj (), *RangeSection,
653
- isLittleEndian , Header.getAddressByteSize ());
653
+ IsLittleEndian , Header.getAddressByteSize ());
654
654
DWARFDebugRnglistTable RnglistTable;
655
655
auto RangeListOrError = RnglistTable.findList (RangesData, Offset);
656
656
if (RangeListOrError)
@@ -1175,10 +1175,10 @@ DWARFUnit::determineStringOffsetsTableContributionDWO(DWARFDataExtractor & DA) {
1175
1175
}
1176
1176
1177
1177
Optional<uint64_t > DWARFUnit::getRnglistOffset (uint32_t Index) {
1178
- DataExtractor RangesData (RangeSection->Data , isLittleEndian ,
1178
+ DataExtractor RangesData (RangeSection->Data , IsLittleEndian ,
1179
1179
getAddressByteSize ());
1180
1180
DWARFDataExtractor RangesDA (Context.getDWARFObj (), *RangeSection,
1181
- isLittleEndian , 0 );
1181
+ IsLittleEndian , 0 );
1182
1182
if (Optional<uint64_t > Off = llvm::DWARFListTableHeader::getOffsetEntry (
1183
1183
RangesData, RangeSectionBase, getFormat (), Index))
1184
1184
return *Off + RangeSectionBase;
0 commit comments