Lines Matching defs:TgtSym

81 LongJmpPass::createNewStub(BinaryBasicBlock &SourceBB, const MCSymbol *TgtSym,
89 BC.MIB->createUncondBranch(Inst, TgtSym, BC.Ctx.get());
97 StubGroupTy &StubGroup = Map[TgtSym];
127 const MCInst &Inst, const MCSymbol *TgtSym, uint64_t DotAddress) const {
129 auto CandidatesIter = StubGroups.find(TgtSym);
168 const MCInst &Inst, const MCSymbol *TgtSym,
173 return lookupStubFromGroup(StubGroups, Func, Inst, TgtSym, DotAddress);
178 const MCSymbol *TgtSym,
186 return lookupStubFromGroup(Iter->second, Func, Inst, TgtSym, DotAddress);
196 const MCSymbol *TgtSym = BC.MIB->getTargetSymbol(Inst);
197 assert(TgtSym && "getTargetSymbol failed");
200 BinaryBasicBlock *TgtBB = BB.getSuccessor(TgtSym, BI);
206 auto SSIter = SharedStubs.find(TgtSym);
208 TgtSym = BC.MIB->getTargetSymbol(*SSIter->second->begin());
213 // The TgtBB and TgtSym now are the local out-of-range stub and its label.
216 TgtSym = BC.MIB->getTargetSymbol(*TgtBB->begin());
217 assert(TgtSym &&
219 BinaryBasicBlock *TgtBBSucc = TgtBB->getSuccessor(TgtSym, BI);
232 BinaryBasicBlock *StubBB = lookupLocalStub(BB, Inst, TgtSym, DotAddress);
236 StubBB = lookupGlobalStub(BB, Inst, TgtSym, DotAddress);
246 createNewStub(BB, TgtSym, /*is func?*/ !TgtBB, StubCreationAddress);
446 const MCSymbol *TgtSym = Func.getBinaryContext().MIB->getTargetSymbol(Inst);
447 const BinaryBasicBlock *TgtBB = Func.getBasicBlockForLabel(TgtSym);
533 const MCSymbol *TgtSym = BC.MIB->getTargetSymbol(Inst);
534 assert(TgtSym && "getTargetSymbol failed");
536 const BinaryBasicBlock *TgtBB = Func.getBasicBlockForLabel(TgtSym);
539 auto SSIter = SharedStubs.find(TgtSym);
550 uint64_t PCRelTgtAddress = getSymbolAddress(BC, TgtSym, TgtBB);