[lld] Make hashtable entry size configurable (PR #113431)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 26 00:47:09 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff bb8bf858e865ec3119352bdef43c09adb4c93b31 ec7ccc4307df58e4fb6a1e34a87b49796d82b228 --extensions cpp,h -- lld/ELF/Arch/SystemZ.cpp lld/ELF/SyntheticSections.cpp lld/ELF/SyntheticSections.h lld/ELF/Target.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index 476c3c4f67..20bff25ba8 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -2527,7 +2527,8 @@ void GnuHashTableSection::addSymbols(SmallVectorImpl<SymbolTableEntry> &v) {
}
HashTableSection::HashTableSection(Ctx &ctx)
- : SyntheticSection(ctx, ".hash", SHT_HASH, SHF_ALLOC, ctx.target->hashEntrySize) {
+ : SyntheticSection(ctx, ".hash", SHT_HASH, SHF_ALLOC,
+ ctx.target->hashEntrySize) {
this->entsize = 4;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/113431
More information about the llvm-commits
mailing list