[SIL] Switch "external" key path pattern components to SubstitutionMap.

Eliminates another source of SubstitutionList.
This commit is contained in:
Doug Gregor
2018-05-02 15:43:15 -07:00
parent e09c152f1d
commit 25b9afe20f
12 changed files with 37 additions and 103 deletions

View File

@@ -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;