[lld] [lld][ELF] Sort thunks by their destination to allow quicker convergence (PR #209962)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 06:04:22 PDT 2026
================
@@ -629,6 +629,11 @@ void Thunk::setOffset(uint64_t newOffset) {
offset = newOffset;
}
+uint64_t Thunk::getDestVA() const {
+ return destination.isInPlt(ctx) ? destination.getPltVA(ctx)
+ : destination.getVA(ctx, addend);
+}
+
// AArch64 Thunk base class.
static uint64_t getAArch64ThunkDestVA(Ctx &ctx, const Symbol &s, int64_t a) {
----------------
smithp35 wrote:
I think all uses of getAArch64ThunkDestVA can be replaced with the object method as the calculation is the same.
https://github.com/llvm/llvm-project/pull/209962
More information about the llvm-commits
mailing list