remove sfFakeConst
This commit is contained in:
parent
a8edf67a28
commit
7d62f031f6
5 changed files with 4 additions and 16 deletions
|
|
@ -2003,10 +2003,7 @@ proc expr(p: BProc, n: PNode, d: var TLoc) =
|
|||
internalError(n.info, "expr: proc not init " & sym.name.s)
|
||||
putLocIntoDest(p, d, sym.loc)
|
||||
of skConst:
|
||||
if sfFakeConst in sym.flags:
|
||||
if sfGlobal in sym.flags: genVarPrototype(p.module, sym)
|
||||
putLocIntoDest(p, d, sym.loc)
|
||||
elif isSimpleConst(sym.typ):
|
||||
if isSimpleConst(sym.typ):
|
||||
putIntoDest(p, d, n.typ, genLiteral(p, sym.ast, sym.typ), OnStatic)
|
||||
else:
|
||||
genComplexConst(p, sym, d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue