[llvm] [DWARF] Clarify a variable name. NFC (PR #88814)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 15 15:59:18 PDT 2024
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/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.
>From 592d6063346c2fc8a0194cfd16b75391e69bfbf9 Mon Sep 17 00:00:00 2001
From: Fangrui Song <i at maskray.me>
Date: Mon, 15 Apr 2024 15:59:08 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.5-bogner
---
llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp b/llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
index 22c9e8cd143c2e..ac19ac79329718 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
@@ -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);
More information about the llvm-commits
mailing list