diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-06-02 09:41:27 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-06-02 09:41:27 +0200 |
commit | 826c1e2d7850026335d33e3be2fce54dee4f6698 (patch) | |
tree | 61b23c163c8cd9063ea8628798d727da404e1f1d /compiler/rod.nim | |
parent | cae19738562f14fbb76004748bed8d2f337d6f0b (diff) | |
download | Nim-826c1e2d7850026335d33e3be2fce54dee4f6698.tar.gz |
incremental compilation: implemented basic replay logic
Diffstat (limited to 'compiler/rod.nim')
-rw-r--r-- | compiler/rod.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rod.nim b/compiler/rod.nim index 1b5331ba7..f9208f5dc 100644 --- a/compiler/rod.nim +++ b/compiler/rod.nim @@ -14,7 +14,7 @@ import ast, idgen, lineinfos, msgs, incremental, modulegraphs when not nimIncremental: template setupModuleCache*(g: ModuleGraph) = discard template storeNode*(g: ModuleGraph; module: PSym; n: PNode) = discard - template loadNode*(g: ModuleGraph; module: PSym; index: var int): PNode = PNode(nil) + template loadNode*(g: ModuleGraph; module: PSym): PNode = newNode(nkStmtList) template getModuleId*(g: ModuleGraph; fileIdx: FileIndex; fullpath: string): int = getID() |