Frontend: Rename -enable-ad-hoc-availability to -weak-link-at-target.

I am separating the concern of weakly linking symbols that are introduced at the deployment target from the concern of type checking this new type of potential unavailability.

Resolves rdar://97925900
This commit is contained in:
Allan Shortlidge
2022-08-01 11:52:14 -07:00
parent 613b3223d9
commit 34012dbc68
6 changed files with 13 additions and 12 deletions

View File

@@ -497,8 +497,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Args.hasArg(OPT_disable_availability_checking);
Opts.CheckAPIAvailabilityOnly |=
Args.hasArg(OPT_check_api_availability_only);
Opts.EnableAdHocAvailability |=
Args.hasArg(OPT_enable_ad_hoc_availability);
Opts.WeakLinkAtTarget |= Args.hasArg(OPT_weak_link_at_target);
if (auto A = Args.getLastArg(OPT_enable_conformance_availability_errors,
OPT_disable_conformance_availability_errors)) {