Searched refs:OldThunkFn (Results 1 – 1 of 1) 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()