Skip to content

Commit 741a721

Browse files
committed
Frontend: Remove -experimental-skip-non-inlinable-function-bodies-is-lazy.
It is no longer needed to work around missing build system support.
1 parent 15545a4 commit 741a721

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

include/swift/Option/FrontendOptions.td

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,11 +1158,6 @@ def experimental_skip_all_function_bodies:
11581158
Flag<["-"], "experimental-skip-all-function-bodies">,
11591159
HelpText<"Skip type-checking function bodies and all SIL generation">;
11601160

1161-
def experimental_skip_non_inlinable_function_bodies_is_lazy
1162-
: Flag<["-"], "experimental-skip-non-inlinable-function-bodies-is-lazy">,
1163-
HelpText<"Infer lazy typechecking for "
1164-
"-experimental-skip-non-inlinable-function-bodies">;
1165-
11661161
def experimental_allow_module_with_compiler_errors:
11671162
Flag<["-"], "experimental-allow-module-with-compiler-errors">,
11681163
Flags<[HelpHidden]>,

lib/Frontend/CompilerInvocation.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,11 +1157,6 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
11571157
if (Args.hasArg(OPT_enable_library_evolution)) {
11581158
Opts.SkipNonExportableDecls |=
11591159
Args.hasArg(OPT_experimental_skip_non_exportable_decls);
1160-
1161-
Opts.SkipNonExportableDecls |=
1162-
Args.hasArg(OPT_experimental_skip_non_inlinable_function_bodies) &&
1163-
Args.hasArg(
1164-
OPT_experimental_skip_non_inlinable_function_bodies_is_lazy);
11651160
} else {
11661161
if (Args.hasArg(OPT_experimental_skip_non_exportable_decls))
11671162
Diags.diagnose(SourceLoc(), diag::ignoring_option_requires_option,
@@ -1714,21 +1709,11 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
17141709

17151710
if (Args.hasArg(OPT_enable_library_evolution)) {
17161711
Opts.EnableLazyTypecheck |= Args.hasArg(OPT_experimental_lazy_typecheck);
1717-
Opts.EnableLazyTypecheck |=
1718-
Args.hasArg(OPT_experimental_skip_non_inlinable_function_bodies) &&
1719-
Args.hasArg(
1720-
OPT_experimental_skip_non_inlinable_function_bodies_is_lazy);
17211712
} else {
17221713
if (Args.hasArg(OPT_experimental_lazy_typecheck))
17231714
Diags.diagnose(SourceLoc(), diag::ignoring_option_requires_option,
17241715
"-experimental-lazy-typecheck",
17251716
"-enable-library-evolution");
1726-
1727-
if (Args.hasArg(
1728-
OPT_experimental_skip_non_inlinable_function_bodies_is_lazy))
1729-
Diags.diagnose(SourceLoc(), diag::ignoring_option_requires_option,
1730-
"-experimental-skip-non-inlinable-function-bodies-is-lazy",
1731-
"-enable-library-evolution");
17321717
}
17331718

17341719
if (LangOpts.AllowNonResilientAccess &&

test/Serialization/lazy-typecheck.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,3 @@
1515
// and -experimental-skip-non-exportable-decls can be used by the same client as in (1).
1616
// 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
1717
// RUN: %target-swift-frontend -package-name Package -typecheck -verify %S/../Inputs/lazy_typecheck_client.swift -DFLAG -I %t/lazy-skip-non-inlinable
18-
19-
// (4) Verify that a module built with -experimental-skip-non-inlinable-function-bodies-is-lazy implies
20-
// -experimental-lazy-typecheck and -experimental-skip-non-exportable-decls.
21-
// 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
22-
// RUN: %target-swift-frontend -package-name Package -typecheck -verify %S/../Inputs/lazy_typecheck_client.swift -DFLAG -I %t/lazy-skip-non-inlinable-is-lazy

0 commit comments

Comments
 (0)