diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-03-19 16:53:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 16:53:38 +0100 |
commit | 6c1c8f51b38c9bc570a70ec8d2836b823d3584cc (patch) | |
tree | b5c453d343e72f479d68027b3960e29a70256478 /compiler/ic/cbackend.nim | |
parent | 60fc7e986becb71e74ad336cc19163ceffb2b43e (diff) | |
download | Nim-6c1c8f51b38c9bc570a70ec8d2836b823d3584cc.tar.gz |
IC: green tests (#17311)
* IC: renamed to_packed_ast module to ic module * IC: don't store the --forceBuild flag, makes it easier to test * IC: enable hello world test * Codegen: refactorings for IC; changed the name mangling algorithm * fixed the HCR regressions * life is too short for HCR * tconvexhull is now allowed to use deepCopy * IC exposed a stdlib bug, required a refactoring * codegen: code cleanups * IC: even if a module is outdated, its dependencies might come from disk * IC: progress * IC: better name mangling, module IDs are not stable * IC: another refactoring helping with --ic:on --gc:arc * disable arraymancer on Windows for the time being * disable arraymancer altogether * IC: make basic test work with 'nim cpp' * IC: progress on --ic:on --gc:arc * wip; name mangling for type info
Diffstat (limited to 'compiler/ic/cbackend.nim')
-rw-r--r-- | compiler/ic/cbackend.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ic/cbackend.nim b/compiler/ic/cbackend.nim index 52a4a3339..88b2a9477 100644 --- a/compiler/ic/cbackend.nim +++ b/compiler/ic/cbackend.nim @@ -23,7 +23,7 @@ import std/[packedsets, algorithm] import ".."/[ast, options, lineinfos, modulegraphs, cgendata, cgen, pathutils, extccomp, msgs] -import packed_ast, to_packed_ast, dce, rodfiles +import packed_ast, ic, dce, rodfiles proc unpackTree(g: ModuleGraph; thisModule: int; tree: PackedTree; n: NodePos): PNode = @@ -83,7 +83,7 @@ proc aliveSymsChanged(config: ConfigRef; position: int; alive: AliveSyms): bool proc generateCode*(g: ModuleGraph) = ## The single entry point, generate C(++) code for the entire ## Nim program aka `ModuleGraph`. - initStrTable(g.compilerprocs) + resetForBackend(g) var alive = computeAliveSyms(g.packed, g.config) for i in 0..high(g.packed): |