[ConstraintSystem] Add an option to disable the constraint solver perf hacks.

This is helpful in experimenting with constraint solver changes that
might help us remove some of these unsound options. It's not ever mean
to be enabled, but if we're able to remove the things guarded by the
option we can eventually remove the option.
This commit is contained in:
Mark Lacey
2018-08-06 11:48:19 -07:00
parent b8cb40b950
commit 3c9cb97c86
6 changed files with 27 additions and 3 deletions

View File

@@ -352,6 +352,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.UseDarwinPreStableABIBit = true;
#endif
Opts.DisableConstraintSolverPerformanceHacks |=
Args.hasArg(OPT_disable_constraint_solver_performance_hacks);
// Must be processed after any other language options that could affect
// platform conditions.
bool UnsupportedOS, UnsupportedArch;