refactoring: C codegen with fewer global variables

This commit is contained in:
Araq 2016-12-05 12:14:24 +01:00
commit ba38b83dd5
6 changed files with 79 additions and 78 deletions

View file

@ -64,7 +64,7 @@ proc commandCompileToC(graph: ModuleGraph; cache: IdentCache) =
#registerPass(cleanupPass())
compileProject(graph, cache)
cgenWriteModules()
cgenWriteModules(graph.backend)
if gCmd != cmdRun:
extccomp.callCCompiler(changeFileExt(gProjectFull, ""))