mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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">,
|
Flag<["-"], "experimental-skip-all-function-bodies">,
|
||||||
HelpText<"Skip type-checking function bodies and all SIL generation">;
|
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:
|
def experimental_allow_module_with_compiler_errors:
|
||||||
Flag<["-"], "experimental-allow-module-with-compiler-errors">,
|
Flag<["-"], "experimental-allow-module-with-compiler-errors">,
|
||||||
Flags<[HelpHidden]>,
|
Flags<[HelpHidden]>,
|
||||||
|
|||||||
@@ -1157,11 +1157,6 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
|||||||
if (Args.hasArg(OPT_enable_library_evolution)) {
|
if (Args.hasArg(OPT_enable_library_evolution)) {
|
||||||
Opts.SkipNonExportableDecls |=
|
Opts.SkipNonExportableDecls |=
|
||||||
Args.hasArg(OPT_experimental_skip_non_exportable_decls);
|
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 {
|
} else {
|
||||||
if (Args.hasArg(OPT_experimental_skip_non_exportable_decls))
|
if (Args.hasArg(OPT_experimental_skip_non_exportable_decls))
|
||||||
Diags.diagnose(SourceLoc(), diag::ignoring_option_requires_option,
|
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)) {
|
if (Args.hasArg(OPT_enable_library_evolution)) {
|
||||||
Opts.EnableLazyTypecheck |= Args.hasArg(OPT_experimental_lazy_typecheck);
|
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 {
|
} else {
|
||||||
if (Args.hasArg(OPT_experimental_lazy_typecheck))
|
if (Args.hasArg(OPT_experimental_lazy_typecheck))
|
||||||
Diags.diagnose(SourceLoc(), diag::ignoring_option_requires_option,
|
Diags.diagnose(SourceLoc(), diag::ignoring_option_requires_option,
|
||||||
"-experimental-lazy-typecheck",
|
"-experimental-lazy-typecheck",
|
||||||
"-enable-library-evolution");
|
"-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 &&
|
if (LangOpts.AllowNonResilientAccess &&
|
||||||
|
|||||||
@@ -15,8 +15,3 @@
|
|||||||
// and -experimental-skip-non-exportable-decls can be used by the same client as in (1).
|
// 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 -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
|
// 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