[serialization] Add support for ParenType.

This is a simple wrapper type. It was trivial to implement.

Swift SVN r5682
This commit is contained in:
Jordan Rose
2013-06-19 18:19:35 +00:00
parent 89c343d7b9
commit ce84b185ea
3 changed files with 24 additions and 5 deletions

View File

@@ -363,6 +363,13 @@ Type ModuleFile::getType(TypeID TID) {
break;
}
case decls_block::PAREN_TYPE: {
TypeID underlyingID;
decls_block::ParenTypeLayout::readRecord(scratch, underlyingID);
typeOrOffset = ParenType::get(ModuleContext->Ctx, getType(underlyingID));
break;
}
default:
// We don't know how to deserialize this kind of type.
error();