Home
last modified time | relevance | path

Searched refs:ThunkFn (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/CodeGen/
DCGVTables.cpp59 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()
[all …]
DMicrosoftCXXABI.cpp1903 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()
[all …]