re-enable object name generation for less dependence on IDs

This commit is contained in:
Araq 2016-12-05 23:37:01 +01:00
commit 38ab106051
2 changed files with 11 additions and 1 deletions

View file

@ -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