[Clang importer] Stop creating property/subscript getter/setter thunks.

Instead of synthesizing Swift code for the property and subscript
getters and setters we import from Objective-C, just create the
declarations and mark them as being Objective-C (foreign) entry
points. This means that we'll use the Objective-C entry points (via
objc_msgSend).


Swift SVN r8692
This commit is contained in:
Doug Gregor
2013-09-26 15:58:19 +00:00
parent 3a72c7ff88
commit cc4c7d0fd8
2 changed files with 7 additions and 75 deletions

View File

@@ -949,7 +949,7 @@ static bool isObjCObjectOrBridgedType(Type type) {
// [objc] protocols
if (auto protoTy = type->getAs<ProtocolType>()) {
auto proto = protoTy->getDecl();
return proto->requiresClass() && proto->getAttrs().isObjC();
return proto->requiresClass() && proto->isObjC();
}
return false;