diff options
author | Araq <rumpf_a@web.de> | 2018-10-02 16:01:08 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-10-02 16:18:16 +0200 |
commit | 621b2db2e88a95f7be9a6ea021333ac9d481b461 (patch) | |
tree | 49bc6cf55799ed722ce45d02da7c7c4e45ded4e1 /compiler/rod.nim | |
parent | ae901b327246f66c4082d09fedbc35ee6a42421b (diff) | |
download | Nim-621b2db2e88a95f7be9a6ea021333ac9d481b461.tar.gz |
compiler IC: minor improvements
Diffstat (limited to 'compiler/rod.nim')
-rw-r--r-- | compiler/rod.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rod.nim b/compiler/rod.nim index f9208f5dc..f6fc24ec0 100644 --- a/compiler/rod.nim +++ b/compiler/rod.nim @@ -9,14 +9,14 @@ ## This module implements the canonalization for the various caching mechanisms. -import ast, idgen, lineinfos, msgs, incremental, modulegraphs +import ast, idgen, lineinfos, msgs, incremental, modulegraphs, pathutils when not nimIncremental: template setupModuleCache*(g: ModuleGraph) = discard template storeNode*(g: ModuleGraph; module: PSym; n: PNode) = discard template loadNode*(g: ModuleGraph; module: PSym): PNode = newNode(nkStmtList) - template getModuleId*(g: ModuleGraph; fileIdx: FileIndex; fullpath: string): int = getID() + template getModuleId*(g: ModuleGraph; fileIdx: FileIndex; fullpath: AbsoluteFile): int = getID() template addModuleDep*(g: ModuleGraph; module, fileIdx: FileIndex; isIncludeFile: bool) = discard |