[lld] [lld][macho] Restructure thunk generation algorithm (PR #193367)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 10:28:16 PDT 2026
================
@@ -228,13 +223,15 @@ void TextOutputSection::finalize() {
const uint64_t slop = config->slopScale * target->thunkSize;
for (auto *isec : inputs) {
while (!branchesToProcess.empty()) {
- auto &[callerIsec, r, thunkKey] = branchesToProcess.front();
+ auto [callerIsec, r] = branchesToProcess.front();
assert(callerIsec->isFinal);
+ auto *funcSym = cast<Symbol *>(r->referent);
----------------
ellishg wrote:
Added a new `ThunkKey` constructor that takes a `Relocation`
https://github.com/llvm/llvm-project/pull/193367
More information about the llvm-commits
mailing list