mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
RequirementMachine: Add flags to enable and disable merged associated types
On by default, no change from current behavior. I'm going to try turning this off (and hopefully ripping it out entirely) once I fix a few bugs.
This commit is contained in:
@@ -891,6 +891,12 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
A->getAsString(Args), A->getValue());
|
||||
}
|
||||
|
||||
if (auto A = Args.getLastArg(OPT_enable_requirement_machine_merged_associated_types,
|
||||
OPT_disable_requirement_machine_merged_associated_types)) {
|
||||
Opts.RequirementMachineMergedAssociatedTypes
|
||||
= A->getOption().matches(OPT_enable_requirement_machine_merged_associated_types);
|
||||
}
|
||||
|
||||
Opts.DumpRequirementMachine = Args.hasArg(
|
||||
OPT_dump_requirement_machine);
|
||||
Opts.AnalyzeRequirementMachine = Args.hasArg(
|
||||
|
||||
Reference in New Issue
Block a user