remove variadics, default args etc, from tuple patterns, and simplify

the Pattern::clone interface now that the complexity isn't needed.
This also removes support for serializing this state.
This commit is contained in:
Chris Lattner
2015-12-31 20:11:15 -08:00
parent 78be05921d
commit cc3f173040
15 changed files with 51 additions and 267 deletions

View File

@@ -833,9 +833,7 @@ void Serializer::writePattern(const Pattern *pattern) {
for (auto &elt : tuple->getElements()) {
// FIXME: Default argument expressions?
TuplePatternEltLayout::emitRecord(
Out, ScratchRecord, abbrCode, addIdentifierRef(elt.getLabel()),
elt.hasEllipsis(),
getRawStableDefaultArgumentKind(elt.getDefaultArgKind()));
Out, ScratchRecord, abbrCode, addIdentifierRef(elt.getLabel()));
writePattern(elt.getPattern());
}
break;