attempt to make C codegen aware of 'gensym'

This commit is contained in:
Araq
2013-07-25 23:40:15 +02:00
parent a59874e312
commit f3a2eec13b

View File

@@ -79,7 +79,7 @@ proc mangleName(s: PSym): PRope =
else: InternalError(s.info, "mangleName")
when oKeepVariableNames:
let keepOrigName = s.kind in skLocalVars - {skForVar} and
{sfFromGeneric, sfGlobal, sfShadowed} * s.flags == {} and
{sfFromGeneric, sfGlobal, sfShadowed, sfGenSym} * s.flags == {} and
not isKeyword(s.name)
# XXX: This is still very experimental
#