make renderIds work again
This commit is contained in:
parent
3761e62fde
commit
7a4d066102
1 changed files with 3 additions and 2 deletions
|
|
@ -325,7 +325,7 @@ proc litAux(g: TSrcGen; n: PNode, x: BiggestInt, size: int): string =
|
||||||
if e.sym.position == x:
|
if e.sym.position == x:
|
||||||
result &= e.sym.name.s
|
result &= e.sym.name.s
|
||||||
return
|
return
|
||||||
|
|
||||||
if nfBase2 in n.flags: result = "0b" & toBin(x, size * 8)
|
if nfBase2 in n.flags: result = "0b" & toBin(x, size * 8)
|
||||||
elif nfBase8 in n.flags:
|
elif nfBase8 in n.flags:
|
||||||
var y = if size < sizeof(BiggestInt): x and ((1 shl (size*8)) - 1)
|
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:
|
else:
|
||||||
t = tkOpr
|
t = tkOpr
|
||||||
if n.kind == nkSym and (renderIds in g.flags or sfGenSym in n.sym.flags or n.sym.kind == skTemp):
|
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):
|
when defined(debugMagics):
|
||||||
s.add '_'
|
s.add '_'
|
||||||
s.add $n.sym.magic
|
s.add $n.sym.magic
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue