[lld] [RISCV][LLD] Zcmt RISC-V extension in lld (PR #183450)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat May 2 23:32:38 PDT 2026
================
@@ -890,16 +937,44 @@ void elf::initSymbolAnchors(Ctx &ctx) {
}
}
+static bool relaxTableJump(Ctx &ctx, const InputSection &sec, size_t i,
+ uint64_t loc, Relocation &r, uint32_t &remove) {
+ if (!ctx.in.riscvTableJump)
+ return false;
----------------
MaskRay wrote:
Coverage check: this branch is dead — every caller is already gated on `ctx.in.riscvTableJump`. Either drop the guard or convert it to `assert(ctx.in.riscvTableJump)`.
https://github.com/llvm/llvm-project/pull/183450
More information about the llvm-commits
mailing list