diff options
author | Jacek Sieka <arnetheduck@gmail.com> | 2018-04-23 17:02:38 +0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-23 11:02:38 +0200 |
commit | 72dfe176f5211f561263984a2df653f16dcf5466 (patch) | |
tree | fdfe465ee360ce63925753737a70973e3309dc7a /compiler/cgen.nim | |
parent | a8b70c550083e432f0028e6582c97d8310a48c8a (diff) | |
download | Nim-72dfe176f5211f561263984a2df653f16dcf5466.tar.gz |
remove dead code elimination option (#7669)
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r-- | compiler/cgen.nim | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 9e1f9349f..ff3e6714d 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -1309,10 +1309,6 @@ proc newModule(g: BModuleList; module: PSym): BModule = growCache g.modules, module.position g.modules[module.position] = result - if (optDeadCodeElim in gGlobalOptions): - if (sfDeadCodeElim in module.flags): - internalError("added pending module twice: " & toFilename(FileIndex module.position)) - template injectG(config) {.dirty.} = if graph.backend == nil: graph.backend = newModuleList(config) |