@@ -196,7 +196,7 @@ static T &getAccelTable(std::unique_ptr<T> &Cache, const DWARFObject &Obj,
196196 if (Cache)
197197 return *Cache;
198198 DWARFDataExtractor AccelSection (Obj, Section, IsLittleEndian, 0 );
199- DataExtractor StrData (StringSection, IsLittleEndian, 0 );
199+ DataExtractor StrData (StringSection, IsLittleEndian);
200200 Cache = std::make_unique<T>(AccelSection, StrData);
201201 if (Error E = Cache->extract ())
202202 llvm::consumeError (std::move (E));
@@ -320,7 +320,7 @@ class ThreadUnsafeDWARFContextState : public DWARFContext::DWARFContextState {
320320 if (AbbrevDWO)
321321 return AbbrevDWO.get ();
322322 const DWARFObject &DObj = D.getDWARFObj ();
323- DataExtractor abbrData (DObj.getAbbrevDWOSection (), D.isLittleEndian (), 0 );
323+ DataExtractor abbrData (DObj.getAbbrevDWOSection (), D.isLittleEndian ());
324324 AbbrevDWO = std::make_unique<DWARFDebugAbbrev>(abbrData);
325325 return AbbrevDWO.get ();
326326 }
@@ -329,8 +329,7 @@ class ThreadUnsafeDWARFContextState : public DWARFContext::DWARFContextState {
329329 if (CUIndex)
330330 return *CUIndex;
331331
332- DataExtractor Data (D.getDWARFObj ().getCUIndexSection (),
333- D.isLittleEndian (), 0 );
332+ DataExtractor Data (D.getDWARFObj ().getCUIndexSection (), D.isLittleEndian ());
334333 CUIndex = std::make_unique<DWARFUnitIndex>(DW_SECT_INFO);
335334 if (CUIndex->parse (Data))
336335 fixupIndex (D, *CUIndex);
@@ -340,8 +339,7 @@ class ThreadUnsafeDWARFContextState : public DWARFContext::DWARFContextState {
340339 if (TUIndex)
341340 return *TUIndex;
342341
343- DataExtractor Data (D.getDWARFObj ().getTUIndexSection (),
344- D.isLittleEndian (), 0 );
342+ DataExtractor Data (D.getDWARFObj ().getTUIndexSection (), D.isLittleEndian ());
345343 TUIndex = std::make_unique<DWARFUnitIndex>(DW_SECT_EXT_TYPES);
346344 bool isParseSuccessful = TUIndex->parse (Data);
347345 // If we are parsing TU-index and for .debug_types section we don't need
@@ -355,7 +353,8 @@ class ThreadUnsafeDWARFContextState : public DWARFContext::DWARFContextState {
355353 if (GdbIndex)
356354 return *GdbIndex;
357355
358- DataExtractor Data (D.getDWARFObj ().getGdbIndexSection (), true /* LE*/ , 0 );
356+ DataExtractor Data (D.getDWARFObj ().getGdbIndexSection (),
357+ /* IsLittleEndian=*/ true );
359358 GdbIndex = std::make_unique<DWARFGdbIndex>();
360359 GdbIndex->parse (Data);
361360 return *GdbIndex;
@@ -365,8 +364,7 @@ class ThreadUnsafeDWARFContextState : public DWARFContext::DWARFContextState {
365364 if (Abbrev)
366365 return Abbrev.get ();
367366
368- DataExtractor Data (D.getDWARFObj ().getAbbrevSection (),
369- D.isLittleEndian (), 0 );
367+ DataExtractor Data (D.getDWARFObj ().getAbbrevSection (), D.isLittleEndian ());
370368 Abbrev = std::make_unique<DWARFDebugAbbrev>(Data);
371369 return Abbrev.get ();
372370 }
@@ -834,7 +832,7 @@ static void dumpStringOffsetsSection(raw_ostream &OS, DIDumpOptions DumpOpts,
834832 bool LittleEndian) {
835833 auto Contributions = collectContributionData (Units);
836834 DWARFDataExtractor StrOffsetExt (Obj, StringOffsetsSection, LittleEndian, 0 );
837- DataExtractor StrData (StringSection, LittleEndian, 0 );
835+ DataExtractor StrData (StringSection, LittleEndian);
838836 uint64_t SectionSize = StringOffsetsSection.Data .size ();
839837 uint64_t Offset = 0 ;
840838 for (auto &Contribution : Contributions) {
@@ -1176,7 +1174,7 @@ void DWARFContext::dump(
11761174 };
11771175
11781176 auto DumpStrSection = [&](StringRef Section) {
1179- DataExtractor StrData (Section, isLittleEndian (), 0 );
1177+ DataExtractor StrData (Section, isLittleEndian ());
11801178 uint64_t Offset = 0 ;
11811179 uint64_t StrOffset = 0 ;
11821180 while (StrData.isValidOffset (Offset)) {
0 commit comments