let labels be constants

This commit is contained in:
Torsten Ruger 2015-11-03 16:20:25 +02:00
parent 14f8b42015
commit c15445a958

View File

@ -49,10 +49,10 @@ module Arm
def translate_LoadConstant code
constant = code.constant
if constant.is_a?(Parfait::Object) or constant.is_a? Symbol
if constant.is_a?(Parfait::Object) or constant.is_a?(Symbol) or constant.is_a?(Register::Label)
return ArmMachine.add( code.register , constant )
else
return ArmMachine.mov( code.register , code.constant )
return ArmMachine.mov( code.register , constant )
end
end