mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user