Skip to content

Commit 536bc5a

Browse files
committed
[silgen] Add some comments to Callee's constructors that explain which constructor corresponds to which factory methods.
NFC.
1 parent 251093e commit 536bc5a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILGen/SILGenApply.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ class Callee {
299299
return cast<FunctionType>(substFormalType);
300300
}
301301

302+
/// Constructor for Callee::forIndirect.
302303
Callee(ManagedValue indirectValue,
303304
AbstractionPattern origFormalType,
304305
CanFunctionType substFormalType,
@@ -310,6 +311,7 @@ class Callee {
310311
Loc(l)
311312
{}
312313

314+
/// Constructor for Callee::forDirect.
313315
Callee(SILGenFunction &SGF, SILDeclRef standaloneFunction,
314316
AbstractionPattern origFormalType,
315317
CanAnyFunctionType substFormalType,
@@ -323,6 +325,8 @@ class Callee {
323325
{
324326
}
325327

328+
/// Constructor called by all for* factory methods except forDirect and
329+
/// forIndirect.
326330
Callee(Kind methodKind, SILGenFunction &SGF, SILDeclRef methodName,
327331
AbstractionPattern origFormalType, CanAnyFunctionType substFormalType,
328332
SubstitutionList subs, SILLocation l)

0 commit comments

Comments
 (0)