summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-01-04 21:08:34 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-01-04 21:08:34 +0100
commit3ae434a086145768b93405aaa35e58afab451879 (patch)
tree906cbf8f5cc0d3dbee6b02542a9aa8fe979a0a77 /compiler
parent464d037c1758243664d46595ab4bd800d86e041f (diff)
downloadNim-3ae434a086145768b93405aaa35e58afab451879.tar.gz
symbol files: do not regenerate method dispatchers for now
Diffstat (limited to 'compiler')
-rw-r--r--compiler/cgen.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 573a14927..5ea7f84e6 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -1443,6 +1443,10 @@ proc myClose(graph: ModuleGraph; b: PPassContext, n: PNode): PNode =
   result = n
   if b == nil or passes.skipCodegen(n): return
   var m = BModule(b)
+  # if the module is cached, we don't regenerate the main proc
+  # nor the dispatchers? But if the dispatchers changed?
+  # XXX emit the dispatchers into its own .c file?
+  if b.rd != nil: return
   if n != nil:
     m.initProc.options = initProcOptions(m)
     genStmts(m.initProc, n)