[llvm] [BOLT][BTI] Refactor: move applyBTIFixup under MCPlusBuilder (PR #177164)
Paschalis Mpeis via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 5 06:31:14 PST 2026
================
@@ -43,6 +43,8 @@ static void relaxStubToShortJmp(BinaryBasicBlock &StubBB, const MCSymbol *Tgt) {
BC.MIB->createShortJmp(Seq, Tgt, BC.Ctx.get());
StubBB.clear();
StubBB.addInstructions(Seq.begin(), Seq.end());
+ if (BC.usesBTI())
+ BC.MIB->applyBTIFixupToTarget(StubBB);
----------------
paschalis-mpeis wrote:
Do you think we could move these into MIB's `createShortJmp` and `createLongJmp`, respectively?
https://github.com/llvm/llvm-project/pull/177164
More information about the llvm-commits
mailing list