Skip to content

Commit 8f3379c

Browse files
committed
Migrator: Remove Swift 3 @objc migration
1 parent ce521a2 commit 8f3379c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/Migrator/Migrator.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -132,23 +132,6 @@ Migrator::performAFixItMigration(version::Version SwiftLanguageVersion) {
132132
LLVMArgs.erase(aarch64_use_tbi);
133133
}
134134

135-
if (StartInvocation.getLangOptions().EffectiveLanguageVersion.isVersion3()) {
136-
// SE-0160: When migrating, always use the Swift 3 @objc inference rules,
137-
// which drives warnings with the "@objc" Fix-Its.
138-
Invocation.getLangOptions().EnableSwift3ObjCInference = true;
139-
140-
// The default behavior of the migrator, referred to as "minimal" migration
141-
// in SE-0160, only adds @objc Fix-Its to those cases where the Objective-C
142-
// entry point is explicitly used somewhere in the source code. The user
143-
// may also select a workflow that adds @objc for every declaration that
144-
// would infer @objc under the Swift 3 rules but would no longer infer
145-
// @objc in Swift 4.
146-
Invocation.getLangOptions().WarnSwift3ObjCInference =
147-
getMigratorOptions().KeepObjcVisibility
148-
? Swift3ObjCInferenceWarnings::Complete
149-
: Swift3ObjCInferenceWarnings::Minimal;
150-
}
151-
152135
const auto &OrigFrontendOpts = StartInvocation.getFrontendOptions();
153136

154137
assert(OrigFrontendOpts.InputsAndOutputs.hasPrimaryInputs() &&

0 commit comments

Comments
 (0)