mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Frontend: Remove -experimental-skip-non-inlinable-function-bodies-is-lazy.
It is no longer needed to work around missing build system support.
This commit is contained in:
@@ -1158,11 +1158,6 @@ def experimental_skip_all_function_bodies:
|
||||
Flag<["-"], "experimental-skip-all-function-bodies">,
|
||||
HelpText<"Skip type-checking function bodies and all SIL generation">;
|
||||
|
||||
def experimental_skip_non_inlinable_function_bodies_is_lazy
|
||||
: Flag<["-"], "experimental-skip-non-inlinable-function-bodies-is-lazy">,
|
||||
HelpText<"Infer lazy typechecking for "
|
||||
"-experimental-skip-non-inlinable-function-bodies">;
|
||||
|
||||
def experimental_allow_module_with_compiler_errors:
|
||||
Flag<["-"], "experimental-allow-module-with-compiler-errors">,
|
||||
Flags<[HelpHidden]>,
|
||||
|
||||
@@ -1157,11 +1157,6 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
if (Args.hasArg(OPT_enable_library_evolution)) {
|
||||
Opts.SkipNonExportableDecls |=
|
||||
Args.hasArg(OPT_experimental_skip_non_exportable_decls);
|
||||
|
||||
Opts.SkipNonExportableDecls |=
|
||||
Args.hasArg(OPT_experimental_skip_non_inlinable_function_bodies) &&
|
||||
Args.hasArg(
|
||||
OPT_experimental_skip_non_inlinable_function_bodies_is_lazy);
|
||||
} else {
|
||||
if (Args.hasArg(OPT_experimental_skip_non_exportable_decls))
|
||||
Diags.diagnose(SourceLoc(), diag::ignoring_option_requires_option,
|
||||
@@ -1714,21 +1709,11 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
|
||||
|
||||
if (Args.hasArg(OPT_enable_library_evolution)) {
|
||||
Opts.EnableLazyTypecheck |= Args.hasArg(OPT_experimental_lazy_typecheck);
|
||||
Opts.EnableLazyTypecheck |=
|
||||
Args.hasArg(OPT_experimental_skip_non_inlinable_function_bodies) &&
|
||||
Args.hasArg(
|
||||
OPT_experimental_skip_non_inlinable_function_bodies_is_lazy);
|
||||
} else {
|
||||
if (Args.hasArg(OPT_experimental_lazy_typecheck))
|
||||
Diags.diagnose(SourceLoc(), diag::ignoring_option_requires_option,
|
||||
"-experimental-lazy-typecheck",
|
||||
"-enable-library-evolution");
|
||||
|
||||
if (Args.hasArg(
|
||||
OPT_experimental_skip_non_inlinable_function_bodies_is_lazy))
|
||||
Diags.diagnose(SourceLoc(), diag::ignoring_option_requires_option,
|
||||
"-experimental-skip-non-inlinable-function-bodies-is-lazy",
|
||||
"-enable-library-evolution");
|
||||
}
|
||||
|
||||
if (LangOpts.AllowNonResilientAccess &&
|
||||
|
||||
@@ -15,8 +15,3 @@
|
||||
// and -experimental-skip-non-exportable-decls can be used by the same client as in (1).
|
||||
// RUN: %target-swift-frontend -swift-version 5 %S/../Inputs/lazy_typecheck.swift -module-name lazy_typecheck -enable-library-evolution -parse-as-library -package-name Package -DFLAG -emit-module -emit-module-path %t/lazy-skip-non-inlinable/lazy_typecheck.swiftmodule -debug-forbid-typecheck-prefix NoTypecheck -experimental-lazy-typecheck -experimental-skip-non-inlinable-function-bodies -experimental-skip-non-exportable-decls
|
||||
// RUN: %target-swift-frontend -package-name Package -typecheck -verify %S/../Inputs/lazy_typecheck_client.swift -DFLAG -I %t/lazy-skip-non-inlinable
|
||||
|
||||
// (4) Verify that a module built with -experimental-skip-non-inlinable-function-bodies-is-lazy implies
|
||||
// -experimental-lazy-typecheck and -experimental-skip-non-exportable-decls.
|
||||
// RUN: %target-swift-frontend -swift-version 5 %S/../Inputs/lazy_typecheck.swift -module-name lazy_typecheck -enable-library-evolution -parse-as-library -package-name Package -DFLAG -emit-module -emit-module-path %t/lazy-skip-non-inlinable-is-lazy/lazy_typecheck.swiftmodule -debug-forbid-typecheck-prefix NoTypecheck -experimental-skip-non-inlinable-function-bodies -experimental-skip-non-inlinable-function-bodies-is-lazy
|
||||
// RUN: %target-swift-frontend -package-name Package -typecheck -verify %S/../Inputs/lazy_typecheck_client.swift -DFLAG -I %t/lazy-skip-non-inlinable-is-lazy
|
||||
|
||||
Reference in New Issue
Block a user