[lld] [RISCV][LLD] Add RISCV zcmt optimise in linker relaxation (PR #77884)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 11 23:42:47 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 e247e6ff272ce70003ca67f62be178f332f9de0f 750f493484149f32633b2407dec0b2ac9000a458 -- lld/ELF/Arch/RISCV.cpp lld/ELF/Config.h lld/ELF/Driver.cpp lld/ELF/SyntheticSections.h lld/ELF/Target.h lld/ELF/Writer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/Arch/RISCV.cpp b/lld/ELF/Arch/RISCV.cpp
index cd9ea653ad..b4c67bcdb7 100644
--- a/lld/ELF/Arch/RISCV.cpp
+++ b/lld/ELF/Arch/RISCV.cpp
@@ -609,7 +609,7 @@ static void initSymbolAnchors() {
}
static bool relaxTableJump(const InputSection &sec, size_t i, uint64_t loc,
- Relocation &r, uint32_t &remove) {
+ Relocation &r, uint32_t &remove) {
if (!in.riscvTableJumpSection || !in.riscvTableJumpSection->isFinalized)
return false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/77884
More information about the llvm-commits
mailing list