Skip to content

Commit 2e26ee9

Browse files
authored
[DWARF] Clarify a variable name. NFC (#88814)
The parameter of `findDebugNamesOffsets` has been renamed to `EndOfHeaderOffset` in #88064 to make it clear it is a section offset instead of an offset relative to the current name index. Rename the call site variable as well.
1 parent d23a850 commit 2e26ee9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,12 +572,12 @@ dwarf::findDebugNamesOffsets(uint64_t EndOfHeaderOffset,
572572

573573
Error DWARFDebugNames::NameIndex::extract() {
574574
const DWARFDataExtractor &AS = Section.AccelSection;
575-
uint64_t hdrSize = Base;
576-
if (Error E = Hdr.extract(AS, &hdrSize))
575+
uint64_t EndOfHeaderOffset = Base;
576+
if (Error E = Hdr.extract(AS, &EndOfHeaderOffset))
577577
return E;
578578

579579
const unsigned SectionOffsetSize = dwarf::getDwarfOffsetByteSize(Hdr.Format);
580-
Offsets = dwarf::findDebugNamesOffsets(hdrSize, Hdr);
580+
Offsets = dwarf::findDebugNamesOffsets(EndOfHeaderOffset, Hdr);
581581

582582
uint64_t Offset =
583583
Offsets.EntryOffsetsBase + (Hdr.NameCount * SectionOffsetSize);

0 commit comments

Comments
 (0)