First part of int allocation

implemented allocate_int
instead of add_new_int
This commit is contained in:
Torsten Ruger
2018-11-21 11:12:39 +02:00
parent 5015a11108
commit bbb7dbef75
7 changed files with 98 additions and 12 deletions

View File

@ -6,6 +6,7 @@ module Risc
class Branch < Instruction
def initialize( source , label )
super(source)
raise "not label #{label}:#{label.class}" unless label.is_a?(Label) or label.is_a?(Parfait::BinaryCode)
@label = label
end
attr_reader :label