Abolish the old attribute syntax for type attributes (and SIL type attrs)

- Change type attribute printing logic (in astprinter and the demangler) 
  to print in the new syntax
- Change the swift parser to only accept type attributes in the new syntax.
- Update canParseTypeTupleBody to lookahead over new-syntax type attributes.
- Update the testsuite to use the new syntax.



Swift SVN r9273
This commit is contained in:
Chris Lattner
2013-10-13 05:39:46 +00:00
parent 704126b62b
commit a476f65471
30 changed files with 782 additions and 835 deletions

View File

@@ -1738,7 +1738,7 @@ void toString(NodePointer pointer, DemanglerPrinter &printer) {
toStringChildren(pointer, printer);
break;
case swift::Demangle::Node::Kind::InOut:
printer << "[inout] ";
printer << "@inout ";
pointer = pointer->child_at(0); continue;
case swift::Demangle::Node::Kind::ObjCAttribute:
printer << "[objc] ";
@@ -1856,7 +1856,7 @@ void toString(NodePointer pointer, DemanglerPrinter &printer) {
break;
}
case swift::Demangle::Node::Kind::ObjCBlock: {
printer << "[objc_block] ";
printer << "@objc_block ";
NodePointer tuple = pointer->child_at(0);
NodePointer rettype = pointer->child_at(1);
toString(tuple, printer);