refactoring: remove idents.legacy global variable and pass the IdentCache around explicitly

This commit is contained in:
Andreas Rumpf 2018-05-27 22:09:15 +02:00
commit 40ec7be45c
41 changed files with 338 additions and 353 deletions

View file

@ -627,7 +627,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
extccomp.initVars(conf)
processCmdLine(passCmd2, "", conf)
let graph = newModuleGraph(conf)
let graph = newModuleGraph(cache, conf)
graph.suggestMode = true
mainCommand(graph, cache)