[sil] Use SILNodes.def to define ARGKIND##ArrayRef instead of hard coding names.

I also changed all of the places that vended these to use SILNodes.def as well
so that when new argument kinds are added, things just work.
This commit is contained in:
Michael Gottesman
2019-11-29 08:51:27 -08:00
parent 8ac1f349a1
commit df47eb2c1f
17 changed files with 35 additions and 50 deletions

View File

@@ -320,7 +320,7 @@ bool FunctionSignatureTransform::ArgumentExplosionAnalyzeParameters() {
SILFunction *F = TransformDescriptor.OriginalFunction;
// Did we decide we should optimize any parameter?
bool SignatureOptimize = false;
auto Args = F->begin()->getFunctionArguments();
auto Args = F->begin()->getSILFunctionArguments();
ConsumedArgToEpilogueReleaseMatcher ArgToReturnReleaseMap(
RCIA->get(F), F, {SILArgumentConvention::Direct_Owned});