mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-17 01:57:11 +00:00
IC: progress
This commit is contained in:
@@ -84,7 +84,7 @@ proc fillBackendName(m: BModule; s: PSym) =
|
||||
if m.hcrOn:
|
||||
result.add '_'
|
||||
result.add(idOrSig(s, m.module.name.s.mangle, m.sigConflicts, m.config))
|
||||
ensureMutable s
|
||||
backendEnsureMutable s
|
||||
s.locImpl.snippet = result
|
||||
|
||||
proc fillParamName(m: BModule; s: PSym) =
|
||||
|
||||
@@ -1508,7 +1508,7 @@ proc genProcNoForward(m: BModule, prc: PSym) =
|
||||
# mangle the inline proc based on the module where it is defined -
|
||||
# not on the first module that uses it
|
||||
if m.module.itemId.module != prc.itemId.module and optCompress in m.config.globalOptions:
|
||||
let prcCopy = copyInlineProc(prc, m.idgen)
|
||||
let prcCopy = prc # copyInlineProc(prc, m.idgen)
|
||||
fillProcLoc(m, prcCopy.ast[namePos])
|
||||
genProcPrototype(m, prcCopy)
|
||||
genProcAux(m, prcCopy)
|
||||
@@ -2523,7 +2523,7 @@ proc writeModule(m: BModule, pending: bool) =
|
||||
|
||||
while m.queue.len > 0:
|
||||
let sym = m.queue.pop()
|
||||
genProcAux(m, sym)
|
||||
genProcNoForward(m, sym)
|
||||
|
||||
finishTypeDescriptions(m)
|
||||
if sfMainModule in m.module.flags:
|
||||
|
||||
Reference in New Issue
Block a user