renamed reg ref to reg val

more appropriate
alas, salaam-arm will break for a sec
This commit is contained in:
Torsten Ruger
2015-10-10 21:38:55 +03:00
parent dd3381e38b
commit aa20f2ca77
8 changed files with 24 additions and 28 deletions

View File

@ -82,7 +82,7 @@ module Virtual
def locals_at l_block
used =[]
# call assigns the return register, but as it is in l_block, it is not asked.
assigned = [ Register::RegisterReference.new(Virtual::RegisterMachine.instance.return_register) ]
assigned = [ Register::RegisterValue.new(Virtual::RegisterMachine.instance.return_register) ]
l_block.reachable.each do |b|
b.uses.each {|u|
(used << u) unless assigned.include?(u)