Handle CF <-> Objective-C toll-free-bridged conversions in the type checker.

Introduce an attribute that describes when a given CF type is
toll-free-bridged to an Objective-C class, and which class that
is. Use that information in the type checker to provide the CF <->
Objective-C toll-free-bridged conversions directly, rather than using
the user-defined conversion machinery.

Swift SVN r21376
This commit is contained in:
Doug Gregor
2014-08-21 21:36:05 +00:00
parent 28866251b0
commit 17716524c5
20 changed files with 205 additions and 81 deletions

View File

@@ -1315,6 +1315,7 @@ void Serializer::writeDeclAttribute(const DeclAttribute *DA) {
case DAK_Ownership: // Serialized as part of the type.
case DAK_Accessibility:
case DAK_SetterAccessibility:
case DAK_ObjCBridged:
case DAK_Count:
llvm_unreachable("cannot serialize DAK_Count");
return;