Convert SimpleCall to new regs
Also fix bug in RegsiterValue/Slot with chain, where logic was dodgy and compiler not set
This commit is contained in:
@ -33,9 +33,12 @@ module Risc
|
||||
end
|
||||
end
|
||||
def self.load_constant( source , constant )
|
||||
if(constant.is_a?(Parfait::Object))
|
||||
value = constant
|
||||
case constant
|
||||
when Parfait::Object
|
||||
type = constant.get_type
|
||||
value = constant
|
||||
when Label
|
||||
type = constant.address.get_type
|
||||
else
|
||||
type = constant.ct_type
|
||||
value = constant.value
|
||||
|
Reference in New Issue
Block a user