cleaned up some debugging code
This commit is contained in:
parent
083d4f4708
commit
86bf97a730
8 changed files with 66 additions and 110 deletions
|
|
@ -143,7 +143,8 @@ proc newProc*(prc: PSym, module: BModule): BProc =
|
|||
|
||||
iterator cgenModules*: var BModule =
|
||||
for i in 0..high(gModules):
|
||||
# some modules (like stdin) may exist only in memory.
|
||||
# they won't have a cgen BModule for them and we must skip them.
|
||||
# ultimately, we are iterating over the file ids here.
|
||||
# some "files" won't have an associated cgen module (like stdin)
|
||||
# and we must skip over them.
|
||||
if gModules[i] != nil: yield gModules[i]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue