get the label int to work consistently

still need to use it in the return
This commit is contained in:
Torsten Ruger
2018-05-30 10:54:18 +03:00
parent 074ec34659
commit 0dc89c772a
9 changed files with 41 additions and 32 deletions

View File

@ -31,10 +31,7 @@ module Mom
# Off course some specific place still has to be responsible for actually
# adding the label to the instruction list (usually an if/while)
def to_risc(compiler)
int = Parfait.object_space.get_integer
puts "ADDING int #{int}"
compiler.add_constant(int)
@risc_label ||= Risc.label(self,name , int , nil)
@risc_label ||= Risc.label(self,name)
end
end
end