Make the registered passes local to the ModuleGraph (#9259)
Closes #9068
This commit is contained in:
parent
85187d4ba3
commit
b97a7dbf3d
12 changed files with 60 additions and 64 deletions
|
|
@ -13,7 +13,7 @@ import
|
|||
ast, astalgo, ropes, passes, options, intsets, platform, sighashes,
|
||||
tables, ndi, lineinfos, pathutils
|
||||
|
||||
from modulegraphs import ModuleGraph
|
||||
from modulegraphs import ModuleGraph, PPassContext
|
||||
|
||||
type
|
||||
TLabel* = Rope # for the C generator a label is just a rope
|
||||
|
|
@ -132,7 +132,7 @@ type
|
|||
# nimtvDeps is VERY hard to cache because it's
|
||||
# not a list of IDs nor can it be made to be one.
|
||||
|
||||
TCGen = object of TPassContext # represents a C source file
|
||||
TCGen = object of PPassContext # represents a C source file
|
||||
s*: TCFileSections # sections of the C file
|
||||
flags*: set[Codegenflag]
|
||||
module*: PSym
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue