Drop TypeCheckerDebugConsumer

This commit is contained in:
Robert Widmann
2020-05-18 22:49:55 -07:00
parent 4c5d87e07c
commit afe8f2b63f
14 changed files with 65 additions and 183 deletions

View File

@@ -8144,10 +8144,8 @@ retry_after_fail:
// If we have a common result type, bind the expected result type to it.
if (commonResultType && !commonResultType->is<ErrorType>()) {
ASTContext &ctx = getASTContext();
if (isDebugMode()) {
auto &log = ctx.TypeCheckerDebug->getStream();
log.indent(solverState ? solverState->depth * 2 : 0)
llvm::errs().indent(solverState ? solverState->depth * 2 : 0)
<< "(common result type for $T" << fnTypeVar->getID() << " is "
<< commonResultType.getString()
<< ")\n";
@@ -9286,9 +9284,8 @@ static bool isAugmentingFix(ConstraintFix *fix) {
}
bool ConstraintSystem::recordFix(ConstraintFix *fix, unsigned impact) {
auto &ctx = getASTContext();
if (isDebugMode()) {
auto &log = ctx.TypeCheckerDebug->getStream();
auto &log = llvm::errs();
log.indent(solverState ? solverState->depth * 2 : 0)
<< "(attempting fix ";
fix->print(log);