vm now free of global variables

This commit is contained in:
Andreas Rumpf 2018-05-28 14:41:49 +02:00
commit 382bc34f93
4 changed files with 12 additions and 17 deletions

View file

@ -41,6 +41,8 @@ type
backend*: RootRef # minor hack so that a backend can extend this easily
config*: ConfigRef
cache*: IdentCache
vm*: RootRef # unfortunately the 'vm' state is shared project-wise, this will
# be clarified in later compiler implementations.
doStopCompile*: proc(): bool {.closure.}
usageSym*: PSym # for nimsuggest
owners*: seq[PSym]