[lld] [RISCV][LLD] Zcmt RISC-V extension in lld (PR #163142)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 9 00:59:45 PST 2025


================
@@ -1533,3 +1594,219 @@ template <class ELFT> void RISCV::scanSection1(InputSectionBase &sec) {
 void RISCV::scanSection(InputSectionBase &sec) {
   invokeELFT(scanSection1, sec);
 }
+
+TableJumpSection::TableJumpSection(Ctx &ctx)
+    : SyntheticSection(ctx, ".riscv.jvt", SHT_PROGBITS,
+                       SHF_ALLOC | SHF_EXECINSTR, tableAlign) {}
+
+void TableJumpSection::addCMJTEntryCandidate(const Symbol *symbol,
----------------
MaskRay wrote:

Should eliminate such simple wrappers. Just call `addEntry` in the only call site of the function

https://github.com/llvm/llvm-project/pull/163142


More information about the llvm-commits mailing list