[lld] [lld] Remove unused argument of DataExtractor constructor (NFC) (PR #196361)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 7 09:25:47 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lld-elf
Author: Sergei Barannikov (s-barannikov)
<details>
<summary>Changes</summary>
`AddressSize` parameter is not used by `DataExtractor` and will be removed in the future. See #<!-- -->190519 for more context.
---
Full diff: https://github.com/llvm/llvm-project/pull/196361.diff
1 Files Affected:
- (modified) lld/ELF/SyntheticSections.cpp (+1-2)
``````````diff
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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/196361
More information about the llvm-commits
mailing list