Lines Matching refs:ThunkFn
2032 llvm::Function *ThunkFn = in EmitVirtualMemPtrThunk() local
2035 assert(ThunkFn->getName() == ThunkName && "name was uniqued!"); in EmitVirtualMemPtrThunk()
2037 ThunkFn->setLinkage(MD->isExternallyVisible() in EmitVirtualMemPtrThunk()
2041 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in EmitVirtualMemPtrThunk()
2043 CGM.SetLLVMFunctionAttributes(MD, FnInfo, ThunkFn); in EmitVirtualMemPtrThunk()
2044 CGM.SetLLVMFunctionAttributesForDefinition(MD, ThunkFn); in EmitVirtualMemPtrThunk()
2050 ThunkFn->addFnAttr("thunk"); in EmitVirtualMemPtrThunk()
2053 ThunkFn->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::None); in EmitVirtualMemPtrThunk()
2066 CGF.StartFunction(GlobalDecl(), FnInfo.getReturnType(), ThunkFn, FnInfo, in EmitVirtualMemPtrThunk()
2082 return ThunkFn; in EmitVirtualMemPtrThunk()
3963 llvm::Function *ThunkFn = llvm::Function::Create( in getAddrOfCXXCtorClosure() local
3965 ThunkFn->setCallingConv(static_cast<llvm::CallingConv::ID>( in getAddrOfCXXCtorClosure()
3967 if (ThunkFn->isWeakForLinker()) in getAddrOfCXXCtorClosure()
3968 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in getAddrOfCXXCtorClosure()
4005 CGF.StartFunction(GlobalDecl(), FnInfo.getReturnType(), ThunkFn, FnInfo, in getAddrOfCXXCtorClosure()
4058 return ThunkFn; in getAddrOfCXXCtorClosure()