diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-11-01 21:02:44 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-11-01 21:02:44 +0100 |
commit | 7a4d066102c3fdacaebb093699024693033742b1 (patch) | |
tree | b6bab36fccfc077a44fa90fddca175dfc82535e7 /compiler | |
parent | 3761e62fde84ba882a87f449d649c74913b6a70b (diff) | |
download | Nim-7a4d066102c3fdacaebb093699024693033742b1.tar.gz |
make renderIds work again
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/renderer.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/renderer.nim b/compiler/renderer.nim index 54090d844..2fbe01ce2 100644 --- a/compiler/renderer.nim +++ b/compiler/renderer.nim @@ -325,7 +325,7 @@ proc litAux(g: TSrcGen; n: PNode, x: BiggestInt, size: int): string = if e.sym.position == x: result &= e.sym.name.s return - + if nfBase2 in n.flags: result = "0b" & toBin(x, size * 8) elif nfBase8 in n.flags: var y = if size < sizeof(BiggestInt): x and ((1 shl (size*8)) - 1) @@ -853,7 +853,8 @@ proc gident(g: var TSrcGen, n: PNode) = else: t = tkOpr if n.kind == nkSym and (renderIds in g.flags or sfGenSym in n.sym.flags or n.sym.kind == skTemp): - s.genSymSuffix(n.sym) + s.add '_' + s.addInt n.sym.id when defined(debugMagics): s.add '_' s.add $n.sym.magic |