Searched refs:ThunkFn (Results 1 – 1 of 1) sorted by relevance
440 llvm::Function *ThunkFn = cast<llvm::Function>(Entry); in EmitThunk() local442 if (!ThunkFn->isDeclaration()) { in EmitThunk()449 assert(ThunkFn->hasAvailableExternallyLinkage() && in EmitThunk()453 CGM.setFunctionLinkage(GD, ThunkFn); in EmitThunk()457 CGM.SetLLVMFunctionAttributesForDefinition(GD.getDecl(), ThunkFn); in EmitThunk()459 if (ThunkFn->isVarArg()) { in EmitThunk()466 CodeGenFunction(CGM).GenerateVarArgsThunk(ThunkFn, FnInfo, GD, Thunk); in EmitThunk()469 CodeGenFunction(CGM).GenerateThunk(ThunkFn, FnInfo, GD, Thunk); in EmitThunk()473 ThunkFn->setLinkage(llvm::GlobalValue::AvailableExternallyLinkage); in EmitThunk()