Skip to content

Commit 7e276a3

Browse files
committed
[Driver] Completely remove -emit-public-type-metadata-accessors.
This was retained to help ease migration between versions of the 4.2 compiler between when the flag was originally introduced and the full fix landed. It's not longer needed and there's no reason to retain it in the full release. Fixes rdar://problem/40502379.
1 parent 8199e8d commit 7e276a3

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

include/swift/AST/DiagnosticsDriver.def

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,6 @@ WARNING(warn_use_filelists_deprecated, none,
155155
"the option '-driver-use-filelists' is deprecated; use "
156156
"'-driver-filelist-threshold=0' instead", ())
157157

158-
WARNING(warn_emit_public_type_metadata_accessors_deprecated, none,
159-
"the option '-emit-public-type-metadata-accessors' is no longer "
160-
"needed and is deprecated; consider removing it", ())
161-
162158
ERROR(cannot_find_migration_script, none,
163159
"missing migration script from path '%0'", (StringRef))
164160

include/swift/Option/Options.td

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,6 @@ def warn_swift3_objc_inference : Flag<["-"], "warn-swift3-objc-inference">,
355355
Alias<warn_swift3_objc_inference_complete>,
356356
Flags<[FrontendOption, DoesNotAffectIncrementalBuild, HelpHidden]>;
357357

358-
def emit_public_type_metadata_accessors :
359-
Flag<["-"], "emit-public-type-metadata-accessors">,
360-
Flags<[FrontendOption]>,
361-
HelpText<"Emit all type metadata accessors as public (deprecated: now does nothing)">;
362-
363358
def Rpass_EQ : Joined<["-"], "Rpass=">,
364359
Flags<[FrontendOption]>,
365360
HelpText<"Report performed transformations by optimization passes whose "

lib/Driver/Driver.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,6 @@ static void validateArgs(DiagnosticEngine &diags, const ArgList &args) {
244244
validateDebugInfoArgs(diags, args);
245245
validateCompilationConditionArgs(diags, args);
246246
validateAutolinkingArgs(diags, args);
247-
248-
if (args.hasArg(options::OPT_emit_public_type_metadata_accessors))
249-
diags.diagnose(SourceLoc(),
250-
diag::warn_emit_public_type_metadata_accessors_deprecated);
251247
}
252248

253249
std::unique_ptr<ToolChain>

test/Driver/emit_public_type_metadata_accessors.swift

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)