Remove [objc_block] attribute from Swift type system.

We will handle Swift-function-to-ObjC-block bridging in SILGen as part of general Cocoa-to-Swift type bridging. Temporarily disable building swiftAppKit and tests that exercise block bridging until the new implementation lands.

Swift SVN r5090
This commit is contained in:
Joe Groff
2013-05-08 16:52:12 +00:00
parent 044df290c1
commit 38f13e56f5
28 changed files with 33 additions and 175 deletions

View File

@@ -719,11 +719,7 @@ void Mangler::mangleFunctionType(AnyFunctionType *fn,
unsigned uncurryLevel) {
// type ::= 'F' type type (curried)
// type ::= 'f' type type (uncurried)
// type ::= 'b' type type (objc block)
if (fn->isBlock())
Buffer << 'b';
else
Buffer << (uncurryLevel > 0 ? 'f' : 'F');
Buffer << (uncurryLevel > 0 ? 'f' : 'F');
mangleType(fn->getInput(), explosion, 0);
mangleType(fn->getResult(), explosion,
(uncurryLevel > 0 ? uncurryLevel - 1 : 0));