have to pass constants around now

as they are not global anymore
This commit is contained in:
Torsten Ruger
2018-07-01 14:11:29 +03:00
parent e10092a4be
commit e75aef933d
5 changed files with 11 additions and 9 deletions

View File

@ -4,9 +4,9 @@ module Risc
#
# The place we collect in is the position map in Position class
module Collector
def self.collect_space
def self.collect_space(linker)
keep Parfait.object_space , 0
Risc.machine.constants.each {|obj| keep(obj,0)}
linker.constants.each {|obj| keep(obj,0)}
Position.positions
end