mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Frontend: Remove support for the -check-api-availability-only flag.
The functionality for this flag is no longer necessary because the emit module jobs for deprecated architectures no longer use an artificially low deployment target. Resolves rdar://104758113
This commit is contained in:
@@ -548,8 +548,10 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
|
||||
Opts.DisableAvailabilityChecking |=
|
||||
Args.hasArg(OPT_disable_availability_checking);
|
||||
Opts.CheckAPIAvailabilityOnly |=
|
||||
Args.hasArg(OPT_check_api_availability_only);
|
||||
if (Args.hasArg(OPT_check_api_availability_only))
|
||||
Diags.diagnose(SourceLoc(), diag::warn_flag_deprecated,
|
||||
"-check-api-availability-only");
|
||||
|
||||
Opts.WeakLinkAtTarget |= Args.hasArg(OPT_weak_link_at_target);
|
||||
|
||||
if (auto A = Args.getLastArg(OPT_enable_conformance_availability_errors,
|
||||
@@ -1195,12 +1197,6 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
|
||||
Opts.DebugTimeExpressions |=
|
||||
Args.hasArg(OPT_debug_time_expression_type_checking);
|
||||
|
||||
// Checking availability of the API only relies on skipping non-inlinable
|
||||
// function bodies. Define it first so it can be overridden by the other
|
||||
// flags.
|
||||
if (Args.hasArg(OPT_check_api_availability_only))
|
||||
Opts.SkipFunctionBodies = FunctionBodySkipping::NonInlinable;
|
||||
|
||||
// Check for SkipFunctionBodies arguments in order from skipping less to
|
||||
// skipping more.
|
||||
if (Args.hasArg(
|
||||
|
||||
Reference in New Issue
Block a user