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:
Allan Shortlidge
2024-01-08 12:04:04 -08:00
parent 3e16fa4e7e
commit e5c6bb649c
23 changed files with 17 additions and 634 deletions

View File

@@ -2897,10 +2897,9 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
}
}
auto abbrCode = S.DeclTypeAbbrCodes[ObjCDeclAttrLayout::Code];
ObjCDeclAttrLayout::emitRecord(S.Out, S.ScratchRecord, abbrCode,
theAttr->isImplicit(),
theAttr->isSwift3Inferred(),
theAttr->isNameImplicit(), numArgs, pieces);
ObjCDeclAttrLayout::emitRecord(
S.Out, S.ScratchRecord, abbrCode, theAttr->isImplicit(), false,
theAttr->isNameImplicit(), numArgs, pieces);
return;
}