diff options
author | Araq <rumpf_a@web.de> | 2016-12-05 23:37:01 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-12-05 23:37:01 +0100 |
commit | 38ab106051481953c53d179542005c9576ae5983 (patch) | |
tree | 8d6c92fe14ca63fdd084c6095bc24d87fb1016ba /compiler/lowerings.nim | |
parent | 80cbe61c6c9935acfb2934c348fbfbbe96de0600 (diff) | |
download | Nim-38ab106051481953c53d179542005c9576ae5983.tar.gz |
re-enable object name generation for less dependence on IDs
Diffstat (limited to 'compiler/lowerings.nim')
-rw-r--r-- | compiler/lowerings.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/lowerings.nim b/compiler/lowerings.nim index 50a9b6319..245cc5f61 100644 --- a/compiler/lowerings.nim +++ b/compiler/lowerings.nim @@ -114,9 +114,10 @@ proc createObj*(owner: PSym, info: TLineInfo): PType = rawAddSon(result, nil) incl result.flags, tfFinal result.n = newNodeI(nkRecList, info) - when false: + when true: let s = newSym(skType, getIdent("Env_" & info.toFilename & "_" & $info.line), owner, info) + incl s.flags, sfAnon s.typ = result result.sym = s |