Home
last modified time | relevance | path

Searched refs:OldThunkFn (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/CodeGen/
DCGVTables.cpp430 llvm::GlobalValue *OldThunkFn = Entry; in emitThunk() local
433 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()
/external/llvm-project/clang/lib/CodeGen/
DCGVTables.cpp526 llvm::GlobalValue *OldThunkFn = ThunkFn; in maybeEmitThunk() local
528 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()