[lld] [LLD][ELF][AArch64] Add BTI Aware long branch thunks (PR #108989)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 27 19:40:18 PDT 2024
================
@@ -2257,6 +2257,16 @@ std::pair<Thunk *, bool> ThunkCreator::getThunk(InputSection *isec,
return std::make_pair(t, true);
}
+std::pair<Thunk *, bool> ThunkCreator::getSyntheticLandingPad(Defined &d,
+ int64_t a) {
+ auto res = landingPadsBySectionAndAddend.try_emplace(
+ {{d.section, d.value}, a}, nullptr);
+ if (res.second)
+ res.first->second = addLandingPadThunk(d, a);
+ ;
----------------
MaskRay wrote:
delete stray `;`
https://github.com/llvm/llvm-project/pull/108989
More information about the llvm-commits
mailing list