[lld] [LLD][ELF][AArch64] Add BTI Aware long branch thunks (PR #108989)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 21 18:33:26 PDT 2024
================
@@ -2243,6 +2243,14 @@ 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) {
+ Thunk *lp = landingPadsBySectionAndAddend[{{d.section, d.value}, a}];
----------------
MaskRay wrote:
Prefer `try_emplace` over `operator[]`
https://github.com/llvm/llvm-project/pull/108989
More information about the llvm-commits
mailing list