Drop experimental prefixes from PackageCMO flags.

Deprecate experimental- flags with prompts to use the proper flags.

rdar://131498517
This commit is contained in:
Ellie Shin
2024-07-10 16:19:04 -07:00
parent 38631ac0b9
commit 18681c43fb
12 changed files with 66 additions and 52 deletions

View File

@@ -726,7 +726,7 @@ public:
Bits.ModuleDecl.IsBuiltFromInterface = flag;
}
/// Returns true if -experimental-allow-non-resilient-access was passed
/// Returns true if -allow-non-resilient-access was passed
/// and the module is built from source.
bool allowNonResilientAccess() const {
return Bits.ModuleDecl.AllowNonResilientAccess &&
@@ -736,11 +736,12 @@ public:
Bits.ModuleDecl.AllowNonResilientAccess = flag;
}
/// Returns true if -experimental-package-cmo was passed, which
/// Returns true if -package-cmo was passed, which
/// enables serialization of package, public, and inlinable decls in a
/// package. This requires -experimental-allow-non-resilient-access.
/// package. This requires -allow-non-resilient-access.
bool serializePackageEnabled() const {
return Bits.ModuleDecl.SerializePackageEnabled;
return Bits.ModuleDecl.SerializePackageEnabled &&
allowNonResilientAccess();
}
void setSerializePackageEnabled(bool flag = true) {
Bits.ModuleDecl.SerializePackageEnabled = flag;