[llvm] [BOLT] Avoid EH trampolines for PIEs/DSOs (PR #117106)
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 16:21:07 PST 2024
================
@@ -1885,6 +1890,42 @@ class BinaryFunction {
return LSDASymbols[F.get()];
}
+ /// If all landing pads for the function fragment \p F are located in fragment
+ /// \p LPF, designate \p LPF as a landing-pad fragment for \p F. Passing
+ /// std::nullopt in LPF, means that landing pads for \p F are located in more
+ /// than one fragment.
+ void setLPFragment(const FragmentNum F, std::optional<FragmentNum> LPF) {
+ if (F.get() >= LPFragments.size())
----------------
dcci wrote:
SG, nevermind.
https://github.com/llvm/llvm-project/pull/117106
More information about the llvm-commits
mailing list