remove sfFakeConst

This commit is contained in:
Jacek Sieka 2016-07-30 16:19:53 +08:00
commit 7d62f031f6
5 changed files with 4 additions and 16 deletions

View file

@ -204,14 +204,8 @@ proc transformConstSection(c: PTransf, v: PNode): PTransNode =
if it.kind != nkConstDef: internalError(it.info, "transformConstSection")
if it.sons[0].kind != nkSym:
internalError(it.info, "transformConstSection")
if sfFakeConst in it[0].sym.flags:
var b = newNodeI(nkConstDef, it.info)
addSon(b, it[0])
addSon(b, ast.emptyNode) # no type description
addSon(b, transform(c, it[2]).PNode)
result[i] = PTransNode(b)
else:
result[i] = PTransNode(it)
result[i] = PTransNode(it)
proc hasContinue(n: PNode): bool =
case n.kind