Move "isDebugMode" into ConstraintSystem

This eliminates the final source of mutation of the TypeCheckerFlags on the ASTContext.
This commit is contained in:
Robert Widmann
2020-05-11 16:48:37 -07:00
parent a5dcb1d400
commit 2bca013457
14 changed files with 80 additions and 68 deletions

View File

@@ -104,10 +104,6 @@ ModuleDecl *SourceLoader::loadModule(SourceLoc importLoc,
dependencyTracker->addDependency(inputFile->getBufferIdentifier(),
/*isSystem=*/false);
// Turn off debugging while parsing other modules.
llvm::SaveAndRestore<bool>
turnOffDebug(Ctx.TypeCheckerOpts.DebugConstraintSolver, false);
unsigned bufferID;
if (auto BufID =
Ctx.SourceMgr.getIDForBufferIdentifier(inputFile->getBufferIdentifier()))