[JITLink][RISCV] Consider relaxable call edges for PLT edges
authorJob Noorman <jnoorman@igalia.com>
Mon, 22 May 2023 08:38:01 +0000 (10:38 +0200)
committerJob Noorman <jnoorman@igalia.com>
Mon, 22 May 2023 08:41:32 +0000 (10:41 +0200)
commitbcd1296a1a5989131b188d605b9777d495281c75
treeb3d0b53cfc40190acc5c91ccd61d9580e914320a
parent7b0e5485762b9fbbf81419aa67575c38e922e0a5
[JITLink][RISCV] Consider relaxable call edges for PLT edges

For linker relaxation (D149526), a new edge kind (`CallRelaxable`) was
introduced. However, this new kind was not taken into account by
`PerGraphGOTAndPLTStubsBuilder_ELF_riscv`. This patch fixes this.

Reviewed By: StephenFan

Differential Revision: https://reviews.llvm.org/D150957
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
llvm/test/ExecutionEngine/JITLink/RISCV/ELF_riscv64_got_plt_reloc.s