[llvm-branch-commits] [lld] ELF: CFI jump table relaxation. (PR #147424)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jul 16 23:13:43 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- lld/ELF/Arch/X86_64.cpp lld/ELF/OutputSections.cpp lld/ELF/Relocations.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/Arch/X86_64.cpp b/lld/ELF/Arch/X86_64.cpp
index 8a41fd147..f6c97f13c 100644
--- a/lld/ELF/Arch/X86_64.cpp
+++ b/lld/ELF/Arch/X86_64.cpp
@@ -400,9 +400,9 @@ static void relaxJumpTables(Ctx &ctx) {
targetOutputSec = sec->getParent();
}
- // Walk the jump table entries other than the last one looking for sections
- // that are small enough to be moved into the jump table and in the same
- // section as the jump table's destination.
+ // Walk the jump table entries other than the last one looking for
+ // sections that are small enough to be moved into the jump table and in
+ // the same section as the jump table's destination.
size_t begin = 0;
Relocation *rbegin = sec->relocs().begin();
size_t cur = begin;
``````````
</details>
https://github.com/llvm/llvm-project/pull/147424
More information about the llvm-branch-commits
mailing list