Lines Matching refs:ThunkFn
1903 llvm::Function *ThunkFn = in EmitVirtualMemPtrThunk() local
1906 assert(ThunkFn->getName() == ThunkName && "name was uniqued!"); in EmitVirtualMemPtrThunk()
1908 ThunkFn->setLinkage(MD->isExternallyVisible() in EmitVirtualMemPtrThunk()
1912 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in EmitVirtualMemPtrThunk()
1914 CGM.SetLLVMFunctionAttributes(MD, FnInfo, ThunkFn); in EmitVirtualMemPtrThunk()
1915 CGM.SetLLVMFunctionAttributesForDefinition(MD, ThunkFn); in EmitVirtualMemPtrThunk()
1921 ThunkFn->addFnAttr("thunk"); in EmitVirtualMemPtrThunk()
1924 ThunkFn->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::None); in EmitVirtualMemPtrThunk()
1937 CGF.StartFunction(GlobalDecl(), FnInfo.getReturnType(), ThunkFn, FnInfo, in EmitVirtualMemPtrThunk()
1953 return ThunkFn; in EmitVirtualMemPtrThunk()
3811 llvm::Function *ThunkFn = llvm::Function::Create( in getAddrOfCXXCtorClosure() local
3813 ThunkFn->setCallingConv(static_cast<llvm::CallingConv::ID>( in getAddrOfCXXCtorClosure()
3815 if (ThunkFn->isWeakForLinker()) in getAddrOfCXXCtorClosure()
3816 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in getAddrOfCXXCtorClosure()
3849 CGF.StartFunction(GlobalDecl(), FnInfo.getReturnType(), ThunkFn, FnInfo, in getAddrOfCXXCtorClosure()
3897 return ThunkFn; in getAddrOfCXXCtorClosure()