mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a staging option for interface type mangling.
NFC yet. Swift SVN r28190
This commit is contained in:
@@ -132,6 +132,9 @@ namespace swift {
|
|||||||
/// Should we check the target OSs of serialized modules to see that they're
|
/// Should we check the target OSs of serialized modules to see that they're
|
||||||
/// new enough?
|
/// new enough?
|
||||||
bool EnableTargetOSChecking = true;
|
bool EnableTargetOSChecking = true;
|
||||||
|
|
||||||
|
/// Mangle declarations using their interface types.
|
||||||
|
bool EnableInterfaceTypeMangling = false;
|
||||||
|
|
||||||
/// The target we are building for.
|
/// The target we are building for.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -181,6 +181,9 @@ def enable_dynamic_value_type_layout :
|
|||||||
def enable_experimental_patterns : Flag<["-"], "enable-experimental-patterns">,
|
def enable_experimental_patterns : Flag<["-"], "enable-experimental-patterns">,
|
||||||
HelpText<"Enable experimental 'switch' pattern matching features">;
|
HelpText<"Enable experimental 'switch' pattern matching features">;
|
||||||
|
|
||||||
|
def enable_interface_type_mangling : Flag<["-"], "enable-interface-type-mangling">,
|
||||||
|
HelpText<"Mangle declarations using interface types">;
|
||||||
|
|
||||||
def disable_availability_checking : Flag<["-"],
|
def disable_availability_checking : Flag<["-"],
|
||||||
"disable-availability-checking">,
|
"disable-availability-checking">,
|
||||||
HelpText<"Disable checking for potentially unavailable APIs">;
|
HelpText<"Disable checking for potentially unavailable APIs">;
|
||||||
|
|||||||
@@ -630,6 +630,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
|||||||
|
|
||||||
Opts.EnableExperimentalPatterns |= Args.hasArg(OPT_enable_experimental_patterns);
|
Opts.EnableExperimentalPatterns |= Args.hasArg(OPT_enable_experimental_patterns);
|
||||||
|
|
||||||
|
Opts.EnableInterfaceTypeMangling |= Args.hasArg(OPT_enable_interface_type_mangling);
|
||||||
|
|
||||||
Opts.DisableAvailabilityChecking |=
|
Opts.DisableAvailabilityChecking |=
|
||||||
Args.hasArg(OPT_disable_availability_checking);
|
Args.hasArg(OPT_disable_availability_checking);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user