Skip to content

Commit

Permalink
[DWARF] Clarify a variable name. NFC (#88814)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MaskRay committed Apr 16, 2024
1 parent d23a850 commit 2e26ee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,12 @@ dwarf::findDebugNamesOffsets(uint64_t EndOfHeaderOffset,

Error DWARFDebugNames::NameIndex::extract() {
const DWARFDataExtractor &AS = Section.AccelSection;
uint64_t hdrSize = Base;
if (Error E = Hdr.extract(AS, &hdrSize))
uint64_t EndOfHeaderOffset = Base;
if (Error E = Hdr.extract(AS, &EndOfHeaderOffset))
return E;

const unsigned SectionOffsetSize = dwarf::getDwarfOffsetByteSize(Hdr.Format);
Offsets = dwarf::findDebugNamesOffsets(hdrSize, Hdr);
Offsets = dwarf::findDebugNamesOffsets(EndOfHeaderOffset, Hdr);

uint64_t Offset =
Offsets.EntryOffsetsBase + (Hdr.NameCount * SectionOffsetSize);
Expand Down

0 comments on commit 2e26ee9

Please sign in to comment.