summary refs log tree commit diff stats
path: root/compiler/ccgmerge.nim
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2018-12-30 10:28:12 +0000
committerAndreas Rumpf <rumpf_a@web.de>2018-12-30 11:28:12 +0100
commit82c009a2cbc5d07ab9a847f1c58228a20efaf219 (patch)
tree4eb145a07f09df58fd84702b4e22719495c47f22 /compiler/ccgmerge.nim
parentcbbdcb266962df39bbdacb99ccd2a656ce9c3af7 (diff)
downloadNim-82c009a2cbc5d07ab9a847f1c58228a20efaf219.tar.gz
Dead code elimination for entire modules and their init procs if empty (#10032)
* fixes #9798
* Change order of write modules
* Move datInit calls ahead of initStackBottom
Diffstat (limited to 'compiler/ccgmerge.nim')
-rw-r--r--compiler/ccgmerge.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ccgmerge.nim b/compiler/ccgmerge.nim
index 144a45816..2d68a198e 100644
--- a/compiler/ccgmerge.nim
+++ b/compiler/ccgmerge.nim
@@ -31,6 +31,7 @@ const
     cfsData: "NIM_merge_DATA",
     cfsProcs: "NIM_merge_PROCS",
     cfsInitProc: "NIM_merge_INIT_PROC",
+    cfsDatInitProc: "NIM_merge_DATINIT_PROC",    
     cfsTypeInit1: "NIM_merge_TYPE_INIT1",
     cfsTypeInit2: "NIM_merge_TYPE_INIT2",
     cfsTypeInit3: "NIM_merge_TYPE_INIT3",