Add a convenient way to query whether a type is POD.

This also has the pleasant side-effect of allowing the
TypeInfo for tuples/etc to not be unnecessarily built.

Swift SVN r3475
This commit is contained in:
John McCall
2012-12-13 10:28:20 +00:00
parent 86b46cab16
commit d09d59d83d
2 changed files with 15 additions and 0 deletions

View File

@@ -160,6 +160,7 @@ public:
llvm::PointerType *isSingleIndirectValue(CanType T, ExplosionKind kind);
llvm::PointerType *requiresIndirectResult(CanType T, ExplosionKind kind);
bool hasTrivialMetatype(CanType type);
bool isPOD(CanType type, ResilienceScope scope);
bool isResilient(Decl *decl) { return false; }