Add -debug-constraints-on-line flag

This commit is contained in:
Brent Royal-Gordon
2019-04-19 11:03:52 -07:00
parent 334b76a237
commit 79cee8daad
4 changed files with 58 additions and 0 deletions

View File

@@ -166,6 +166,10 @@ namespace swift {
/// solver should be debugged.
unsigned DebugConstraintSolverAttempt = 0;
/// Line numbers to activate the constraint solver debugger.
/// Should be stored sorted.
llvm::SmallVector<unsigned, 4> DebugConstraintSolverOnLines;
/// Enable named lazy member loading.
bool NamedLazyMemberLoading = true;

View File

@@ -189,6 +189,12 @@ def debug_constraints : Flag<["-"], "debug-constraints">,
def debug_constraints_attempt : Separate<["-"], "debug-constraints-attempt">,
HelpText<"Debug the constraint solver at a given attempt">;
def debug_constraints_on_line : Separate<["-"], "debug-constraints-on-line">,
HelpText<"Debug the constraint solver for expressions on <line>">,
MetaVarName<"<line>">;
def debug_constraints_on_line_EQ : Joined<["-"], "debug-constraints-on-line=">,
Alias<debug_constraints_on_line>;
def disable_named_lazy_member_loading : Flag<["-"], "disable-named-lazy-member-loading">,
HelpText<"Disable per-name lazy member loading">;