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

@@ -480,7 +480,7 @@ bool SILFunction::isWeakImported() const {
auto deploymentTarget =
AvailabilityContext::forDeploymentTarget(getASTContext());
if (getASTContext().LangOpts.EnableAdHocAvailability)
if (getASTContext().LangOpts.WeakLinkAtTarget)
return !Availability.isSupersetOf(deploymentTarget);
return !deploymentTarget.isContainedIn(Availability);