[AST] NFC: Introduce PrintOptions::forDebugging

This commit is contained in:
Hamish Knight
2025-09-21 23:19:06 +01:00
parent 4183eca16c
commit 3141b5a8cd
14 changed files with 66 additions and 109 deletions

View File

@@ -577,8 +577,7 @@ void SolverTrail::Change::undo(ConstraintSystem &cs) const {
void SolverTrail::Change::dump(llvm::raw_ostream &out,
ConstraintSystem &cs,
unsigned indent) const {
PrintOptions PO;
PO.PrintTypesForDebugging = true;
PrintOptions PO = PrintOptions::forDebugging();
out.indent(indent);
@@ -887,8 +886,7 @@ void SolverTrail::dumpActiveScopeChanges(llvm::raw_ostream &out,
llvm::set_subtract(removedConstraints, intersects);
// Print out Changes.
PrintOptions PO;
PO.PrintTypesForDebugging = true;
PrintOptions PO = PrintOptions::forDebugging();
out.indent(indent);
out << "(Changes:\n";
if (!addedTypeVars.empty()) {