Skip to content

Commit 1e2dc99

Browse files
authored
Merge pull request #17416 from huonw/remove-emit-public-type-metadata-accessors-flag-4.2
[4.2] [Driver] Completely remove -emit-public-type-metadata-accessors.
2 parents f56a941 + 7e276a3 commit 1e2dc99

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
@@ -358,11 +358,6 @@ def warn_swift3_objc_inference : Flag<["-"], "warn-swift3-objc-inference">,
358358
Alias<warn_swift3_objc_inference_complete>,
359359
Flags<[FrontendOption, DoesNotAffectIncrementalBuild, HelpHidden]>;
360360

361-
def emit_public_type_metadata_accessors :
362-
Flag<["-"], "emit-public-type-metadata-accessors">,
363-
Flags<[FrontendOption]>,
364-
HelpText<"Emit all type metadata accessors as public (deprecated: now does nothing)">;
365-
366361
def Rpass_EQ : Joined<["-"], "Rpass=">,
367362
Flags<[FrontendOption]>,
368363
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)