File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2491,6 +2491,12 @@ SignatureExpansionABIDetails Signature::getUncachedABIDetails(
24912491 return result;
24922492}
24932493
2494+ Signature Signature::forFunction (llvm::Function *fn) {
2495+ auto sig = Signature (fn->getFunctionType (), fn->getAttributes (),
2496+ fn->getCallingConv ());
2497+ return sig;
2498+ }
2499+
24942500Signature Signature::forCoroutineContinuation (IRGenModule &IGM,
24952501 CanSILFunctionType fnType) {
24962502 assert (fnType->isCoroutine ());
Original file line number Diff line number Diff line change @@ -212,6 +212,8 @@ class Signature {
212212 getUncachedABIDetails (IRGenModule &IGM, CanSILFunctionType formalType,
213213 FunctionPointerKind kind);
214214
215+ static Signature forFunction (llvm::Function *fn);
216+
215217 // / Compute the signature of a coroutine's continuation function.
216218 static Signature forCoroutineContinuation (IRGenModule &IGM,
217219 CanSILFunctionType coroType);
You can’t perform that action at this time.
0 commit comments