@@ -54,7 +54,7 @@ void ConstraintSystem::increaseScore(ScoreKind kind, unsigned value) {
5454
5555 if (isDebugMode () && value > 0 ) {
5656 if (solverState)
57- llvm::errs ().indent (solverState->depth * 2 );
57+ llvm::errs ().indent (solverState->getCurrentIndent () );
5858 llvm::errs () << " (increasing '" << Score::getNameFor (kind) << " ' score by " << value
5959 << " )\n " ;
6060 }
@@ -72,7 +72,7 @@ bool ConstraintSystem::worseThanBestSolution() const {
7272 return false ;
7373
7474 if (isDebugMode ()) {
75- llvm::errs ().indent (solverState->depth * 2 )
75+ llvm::errs ().indent (solverState->getCurrentIndent () )
7676 << " (solution is worse than the best solution)\n " ;
7777 }
7878
@@ -795,7 +795,7 @@ SolutionCompareResult ConstraintSystem::compareSolutions(
795795 ConstraintSystem &cs, ArrayRef<Solution> solutions,
796796 const SolutionDiff &diff, unsigned idx1, unsigned idx2) {
797797 if (cs.isDebugMode ()) {
798- llvm::errs ().indent (cs.solverState ->depth * 2 )
798+ llvm::errs ().indent (cs.solverState ->getCurrentIndent () )
799799 << " comparing solutions " << idx1 << " and " << idx2 <<" \n " ;
800800 }
801801
@@ -1352,13 +1352,13 @@ ConstraintSystem::findBestSolution(SmallVectorImpl<Solution> &viable,
13521352 return 0 ;
13531353
13541354 if (isDebugMode ()) {
1355- llvm::errs ().indent (solverState->depth * 2 )
1355+ llvm::errs ().indent (solverState->getCurrentIndent () )
13561356 << " Comparing " << viable.size () << " viable solutions\n " ;
13571357
13581358 for (unsigned i = 0 , n = viable.size (); i != n; ++i) {
1359- llvm::errs ().indent (solverState->depth * 2 )
1359+ llvm::errs ().indent (solverState->getCurrentIndent () )
13601360 << " \n --- Solution #" << i << " ---\n " ;
1361- viable[i].dump (llvm::errs ().indent (solverState->depth * 2 ));
1361+ viable[i].dump (llvm::errs ().indent (solverState->getCurrentIndent () ));
13621362 }
13631363 }
13641364
0 commit comments