Lines Matching refs:NewG
721 Function *NewG = Function::Create(G->getFunctionType(), G->getLinkage(), "",
723 BasicBlock *BB = BasicBlock::Create(F->getContext(), "", NewG);
729 for (Function::arg_iterator AI = NewG->arg_begin(), AE = NewG->arg_end();
738 if (NewG->getReturnType()->isVoidTy()) {
741 Builder.CreateRet(Builder.CreateBitCast(CI, NewG->getReturnType()));
744 NewG->copyAttributesFrom(G);
745 NewG->takeName(G);
747 G->replaceAllUsesWith(NewG);
750 DEBUG(dbgs() << "writeThunk: " << NewG->getName() << '\n');