Lines Matching refs:ThunkFn
59 llvm::Function *ThunkFn, bool ForVTable, in setThunkProperties() argument
61 CGM.setFunctionLinkage(GD, ThunkFn); in setThunkProperties()
62 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD, in setThunkProperties()
67 setThunkVisibility(CGM, MD, Thunk, ThunkFn); in setThunkProperties()
69 if (CGM.supportsCOMDAT() && ThunkFn->isWeakForLinker()) in setThunkProperties()
70 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in setThunkProperties()
451 llvm::Function *ThunkFn = cast<llvm::Function>(Entry); in emitThunk() local
455 if (!ThunkFn->isDeclaration()) { in emitThunk()
461 setThunkProperties(CGM, Thunk, ThunkFn, ForVTable, GD); in emitThunk()
465 CGM.SetLLVMFunctionAttributesForDefinition(GD.getDecl(), ThunkFn); in emitThunk()
467 if (ThunkFn->isVarArg()) { in emitThunk()
475 ThunkFn = in emitThunk()
476 CodeGenFunction(CGM).GenerateVarArgsThunk(ThunkFn, FnInfo, GD, Thunk); in emitThunk()
479 CodeGenFunction(CGM).generateThunk(ThunkFn, FnInfo, GD, Thunk); in emitThunk()
482 setThunkProperties(CGM, Thunk, ThunkFn, ForVTable, GD); in emitThunk()