mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove support for Swift 3 @objc inference.
Obsolete the `-enable-swift3-objc-inference` option and related options by removing support for inferring `@objc` attributes using Swift 3 rules. Automated migration from Swift 3 has not been supported by the compiler for many years.
This commit is contained in:
@@ -5540,7 +5540,7 @@ llvm::Error DeclDeserializer::deserializeDeclCommon() {
|
||||
case decls_block::ObjC_DECL_ATTR: {
|
||||
bool isImplicit;
|
||||
bool isImplicitName;
|
||||
bool isSwift3Inferred;
|
||||
bool isSwift3Inferred; // FIXME: Remove, unused
|
||||
uint64_t numArgs;
|
||||
ArrayRef<uint64_t> rawPieceIDs;
|
||||
serialization::decls_block::ObjCDeclAttrLayout::readRecord(
|
||||
@@ -5557,7 +5557,6 @@ llvm::Error DeclDeserializer::deserializeDeclCommon() {
|
||||
Attr = ObjCAttr::create(ctx, ObjCSelector(ctx, numArgs-1, pieces),
|
||||
isImplicitName);
|
||||
Attr->setImplicit(isImplicit);
|
||||
cast<ObjCAttr>(Attr)->setSwift3Inferred(isSwift3Inferred);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user