AST: Introduce new SubstitutionList type to replace ArrayRef<Substitution>

SubstitutionList is going to be a more compact representation of
a SubstitutionMap, suitable for inline allocation inside another
object.

For now, it's just a typedef for ArrayRef<Substitution>.
This commit is contained in:
Slava Pestov
2017-02-06 20:23:10 -08:00
parent e98ac967d4
commit 3519e0cd25
87 changed files with 370 additions and 315 deletions

View File

@@ -533,7 +533,7 @@ void SILFunction::convertToDeclaration() {
getBlocks().clear();
}
ArrayRef<Substitution> SILFunction::getForwardingSubstitutions() {
SubstitutionList SILFunction::getForwardingSubstitutions() {
if (ForwardingSubs)
return *ForwardingSubs;