mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] Switch "external" key path pattern components to SubstitutionMap.
Eliminates another source of SubstitutionList.
This commit is contained in:
@@ -1065,6 +1065,18 @@ public:
|
||||
printDebugVar(ABI->getVarInfo());
|
||||
}
|
||||
|
||||
void printSubstitutions(SubstitutionMap Subs) {
|
||||
if (Subs.empty())
|
||||
return;
|
||||
|
||||
*this << '<';
|
||||
interleave(Subs.getReplacementTypes(),
|
||||
[&](Type type) { *this << type; },
|
||||
[&] { *this << ", "; });
|
||||
*this << '>';
|
||||
|
||||
}
|
||||
|
||||
void printSubstitutions(SubstitutionList Subs) {
|
||||
if (Subs.empty())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user