summary refs log tree commit diff stats
path: root/compiler/rod.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-10-02 16:01:08 +0200
committerAraq <rumpf_a@web.de>2018-10-02 16:18:16 +0200
commit621b2db2e88a95f7be9a6ea021333ac9d481b461 (patch)
tree49bc6cf55799ed722ce45d02da7c7c4e45ded4e1 /compiler/rod.nim
parentae901b327246f66c4082d09fedbc35ee6a42421b (diff)
downloadNim-621b2db2e88a95f7be9a6ea021333ac9d481b461.tar.gz
compiler IC: minor improvements
Diffstat (limited to 'compiler/rod.nim')
-rw-r--r--compiler/rod.nim4
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