remove collecting from the machine
use as stand alone module
This commit is contained in:
@ -6,7 +6,7 @@ class HelloTest < MiniTest::Test
|
||||
def check
|
||||
machine = Register.machine.boot
|
||||
Typed.compile( @input )
|
||||
objects = machine.collect_space
|
||||
objects = Register::Collector.collect_space
|
||||
machine.translate_arm
|
||||
writer = Elf::ObjectWriter.new(machine , objects )
|
||||
writer.save "test/hello.o"
|
||||
|
@ -10,7 +10,7 @@ class TestZeroCode < MiniTest::Test
|
||||
type.remove_method(method) unless keeper(method)
|
||||
end
|
||||
end
|
||||
@objects = @machine.collect_space
|
||||
@objects = Register::Collector.collect_space
|
||||
end
|
||||
def keeper name
|
||||
name == :main or name == :__init__
|
||||
|
Reference in New Issue
Block a user