remove some more add_xx functions

also load labels by dsl now
This commit is contained in:
Torsten Ruger
2018-08-14 20:24:48 +03:00
parent 520dc7b41f
commit e953cc90d5
5 changed files with 14 additions and 10 deletions

View File

@ -134,7 +134,7 @@ module Risc
# - an RValue, resulting in an SlotToReg
def <<( right )
case right
when Parfait::Object , Symbol
when Parfait::Object , Symbol , Label
ins = Risc.load_constant("#{right.class} to #{self.type}" , right , self)
when Fixnum
ins = Risc.load_data("#{right.class} to #{self.type}" , right , self)