implement parser and AST support for trivial (empty) protocol types.

Swift SVN r652
This commit is contained in:
Chris Lattner
2011-08-31 19:43:06 +00:00
parent 58b81c8da0
commit f9b024adb0
10 changed files with 119 additions and 8 deletions

View File

@@ -175,3 +175,12 @@ ArrayType::ArrayType(Type base, uint64_t size)
Base(base), Size(size) {}
ProtocolType *ProtocolType::get(ASTContext &C) {
return new (C) ProtocolType();
}
ProtocolType::ProtocolType()
: TypeBase(TypeKind::Protocol, this) {}