@@ -786,10 +786,6 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
786
786
Opts.EnablePackageInterfaceLoad = Args.hasArg (OPT_experimental_package_interface_load) ||
787
787
::getenv (" SWIFT_ENABLE_PACKAGE_INTERFACE_LOAD" );
788
788
789
- Opts.EnableBypassResilienceInPackage =
790
- Args.hasArg (OPT_experimental_package_bypass_resilience) ||
791
- Opts.hasFeature (Feature::ClientBypassResilientAccessInPackage);
792
-
793
789
Opts.DisableAvailabilityChecking |=
794
790
Args.hasArg (OPT_disable_availability_checking);
795
791
if (Args.hasArg (OPT_check_api_availability_only))
@@ -1239,13 +1235,14 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
1239
1235
1240
1236
Opts.AllowNonResilientAccess =
1241
1237
Args.hasArg (OPT_experimental_allow_non_resilient_access) ||
1238
+ Args.hasArg (OPT_allow_non_resilient_access) ||
1242
1239
Opts.hasFeature (Feature::AllowNonResilientAccessInPackage);
1243
1240
if (Opts.AllowNonResilientAccess ) {
1244
1241
// Override the option to skip non-exportable decls.
1245
1242
if (Opts.SkipNonExportableDecls ) {
1246
1243
Diags.diagnose (SourceLoc (), diag::warn_ignore_option_overriden_by,
1247
1244
" -experimental-skip-non-exportable-decls" ,
1248
- " -experimental- allow-non-resilient-access" );
1245
+ " -allow-non-resilient-access" );
1249
1246
Opts.SkipNonExportableDecls = false ;
1250
1247
}
1251
1248
// If built from interface, non-resilient access should not be allowed.
@@ -1254,7 +1251,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
1254
1251
FrontendOpts.RequestedAction )) {
1255
1252
Diags.diagnose (
1256
1253
SourceLoc (), diag::warn_ignore_option_overriden_by,
1257
- " -experimental- allow-non-resilient-access" ,
1254
+ " -allow-non-resilient-access" ,
1258
1255
" -compile-module-from-interface or -typecheck-module-from-interface" );
1259
1256
Opts.AllowNonResilientAccess = false ;
1260
1257
}
@@ -1671,7 +1668,7 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
1671
1668
if (LangOpts.AllowNonResilientAccess )
1672
1669
Diags.diagnose (SourceLoc (), diag::warn_ignore_option_overriden_by,
1673
1670
" -experimental-skip-non-inlinable-function-bodies-without-types" ,
1674
- " -experimental- allow-non-resilient-access" );
1671
+ " -allow-non-resilient-access" );
1675
1672
else
1676
1673
Opts.SkipFunctionBodies = FunctionBodySkipping::NonInlinableWithoutTypes;
1677
1674
}
@@ -1682,7 +1679,7 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
1682
1679
if (LangOpts.AllowNonResilientAccess )
1683
1680
Diags.diagnose (SourceLoc (), diag::warn_ignore_option_overriden_by,
1684
1681
" -experimental-skip-non-inlinable-function-bodies" ,
1685
- " -experimental- allow-non-resilient-access" );
1682
+ " -allow-non-resilient-access" );
1686
1683
else
1687
1684
Opts.SkipFunctionBodies = FunctionBodySkipping::NonInlinable;
1688
1685
}
@@ -1691,7 +1688,7 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
1691
1688
if (LangOpts.AllowNonResilientAccess )
1692
1689
Diags.diagnose (SourceLoc (), diag::warn_ignore_option_overriden_by,
1693
1690
" -tbd-is-installapi" ,
1694
- " -experimental- allow-non-resilient-access" );
1691
+ " -allow-non-resilient-access" );
1695
1692
else
1696
1693
Opts.SkipFunctionBodies = FunctionBodySkipping::NonInlinable;
1697
1694
}
@@ -1700,7 +1697,7 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
1700
1697
if (LangOpts.AllowNonResilientAccess )
1701
1698
Diags.diagnose (SourceLoc (), diag::warn_ignore_option_overriden_by,
1702
1699
" -experimental-skip-all-function-bodies" ,
1703
- " -experimental- allow-non-resilient-access" );
1700
+ " -allow-non-resilient-access" );
1704
1701
else
1705
1702
Opts.SkipFunctionBodies = FunctionBodySkipping::All;
1706
1703
}
@@ -1774,7 +1771,7 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
1774
1771
Opts.EnableLazyTypecheck ) {
1775
1772
Diags.diagnose (SourceLoc (), diag::warn_ignore_option_overriden_by,
1776
1773
" -experimental-lazy-typecheck" ,
1777
- " -experimental- allow-non-resilient-access" );
1774
+ " -allow-non-resilient-access" );
1778
1775
Opts.EnableLazyTypecheck = false ;
1779
1776
}
1780
1777
@@ -2608,11 +2605,12 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
2608
2605
}
2609
2606
2610
2607
if (Args.hasArg (OPT_ExperimentalPackageCMO) ||
2608
+ Args.hasArg (OPT_PackageCMO) ||
2611
2609
LangOpts.hasFeature (Feature::PackageCMO)) {
2612
2610
if (!LangOpts.AllowNonResilientAccess ) {
2613
2611
Diags.diagnose (SourceLoc (), diag::ignoring_option_requires_option,
2614
- " -experimental- package-cmo" ,
2615
- " -experimental- allow-non-resilient-access" );
2612
+ " -package-cmo" ,
2613
+ " -allow-non-resilient-access" );
2616
2614
} else {
2617
2615
Opts.EnableSerializePackage = true ;
2618
2616
Opts.CMOMode = CrossModuleOptimizationMode::Default;
0 commit comments