Lines Matching defs:NewF
871 // create aliases for G and NewF, or because a thunk for F is profitable.
872 // F here has the same signature as NewF below, so that's what we check.
878 Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(),
880 NewF->copyAttributesFrom(F);
881 NewF->takeName(F);
882 NewF->IsNewDbgInfoFormat = F->IsNewDbgInfoFormat;
884 copyMetadataIfPresent(F, NewF, "type");
885 copyMetadataIfPresent(F, NewF, "kcfi_type");
887 F->replaceAllUsesWith(NewF);
889 // We collect alignment before writeThunkOrAlias that overwrites NewF and
891 const MaybeAlign NewFAlign = NewF->getAlign();
895 writeThunkOrAlias(F, NewF);