Searched refs:OldThunkFn (Results 1 – 2 of 2) sorted by relevance
430 llvm::GlobalValue *OldThunkFn = Entry; in emitThunk() local433 assert(OldThunkFn->isDeclaration() && in emitThunk()437 OldThunkFn->setName(StringRef()); in emitThunk()441 if (!OldThunkFn->use_empty()) { in emitThunk()443 llvm::ConstantExpr::getBitCast(Entry, OldThunkFn->getType()); in emitThunk()444 OldThunkFn->replaceAllUsesWith(NewPtrForOldDecl); in emitThunk()448 OldThunkFn->eraseFromParent(); in emitThunk()
526 llvm::GlobalValue *OldThunkFn = ThunkFn; in maybeEmitThunk() local528 assert(OldThunkFn->isDeclaration() && "Shouldn't replace non-declaration"); in maybeEmitThunk()531 OldThunkFn->setName(StringRef()); in maybeEmitThunk()537 if (!OldThunkFn->use_empty()) { in maybeEmitThunk()539 llvm::ConstantExpr::getBitCast(ThunkFn, OldThunkFn->getType()); in maybeEmitThunk()540 OldThunkFn->replaceAllUsesWith(NewPtrForOldDecl); in maybeEmitThunk()544 OldThunkFn->eraseFromParent(); in maybeEmitThunk()