Add some basic structures for protocol composition types.

Swift SVN r2355
This commit is contained in:
John McCall
2012-07-14 06:50:53 +00:00
parent 79906830d1
commit b86d764397
4 changed files with 195 additions and 69 deletions

View File

@@ -48,6 +48,7 @@ namespace swift {
class FuncDecl;
class OneOfElementDecl;
class OneOfDecl;
class ProtocolCompositionType;
class ProtocolDecl;
class SourceLoc;
class StructDecl;
@@ -127,6 +128,7 @@ public:
const TypeInfo &getFragileTypeInfo(Type T);
llvm::Type *getFragileType(Type T);
llvm::StructType *createNominalType(TypeDecl *D);
llvm::StructType *createNominalType(ProtocolCompositionType *T);
void getSchema(Type T, ExplosionSchema &schema);
unsigned getExplosionSize(Type T, ExplosionKind kind);