Searched refs:OldThunkFn (Results 1 – 1 of 1) sorted by relevance
409 llvm::GlobalValue *OldThunkFn = Entry; in emitThunk() local412 assert(OldThunkFn->isDeclaration() && in emitThunk()416 OldThunkFn->setName(StringRef()); in emitThunk()420 if (!OldThunkFn->use_empty()) { in emitThunk()422 llvm::ConstantExpr::getBitCast(Entry, OldThunkFn->getType()); in emitThunk()423 OldThunkFn->replaceAllUsesWith(NewPtrForOldDecl); in emitThunk()427 OldThunkFn->eraseFromParent(); in emitThunk()