[lld] [lld] Remove unused argument of DataExtractor constructor (NFC) (PR #196361)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Thu May 7 09:24:58 PDT 2026


https://github.com/s-barannikov created https://github.com/llvm/llvm-project/pull/196361

`AddressSize` parameter is not used by `DataExtractor` and will be removed in the future. See #190519 for more context.

>From ef5b9319a030d3a36a433cc7de82482b8413fbce Mon Sep 17 00:00:00 2001
From: Sergei Barannikov <barannikov88 at gmail.com>
Date: Thu, 7 May 2026 19:24:10 +0300
Subject: [PATCH] [lld] Remove unused argument of DataExtractor constructor
 (NFC)

`AddressSize` parameter is not used by `DataExtractor` and will be
removed in the future. See #190519 for more context.
---
 lld/ELF/SyntheticSections.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index 805d0530f12ad..c4807e1e150b5 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -3062,8 +3062,7 @@ DebugNamesSection<ELFT>::DebugNamesSection(Ctx &ctx)
                                       ELFT::Is64Bits ? 8 : 4);
     // .debug_str is needed to get symbol names from string offsets.
     DataExtractor strExtractor(dobj.getStrSection(),
-                               ELFT::Endianness == endianness::little,
-                               ELFT::Is64Bits ? 8 : 4);
+                               ELFT::Endianness == endianness::little);
     inputChunk.section = dobj.getNamesSection();
 
     inputChunk.llvmDebugNames.emplace(namesExtractor, strExtractor);



More information about the llvm-commits mailing list