From b99fdc3425d4e9e43c5e2de717f45cfd5a0cea83 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Wed, 21 Mar 2018 11:52:53 +0530 Subject: [PATCH] rename jump label --- lib/mom/instruction/jump.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/mom/instruction/jump.rb b/lib/mom/instruction/jump.rb index ea14f0b5..9bdb3cb1 100644 --- a/lib/mom/instruction/jump.rb +++ b/lib/mom/instruction/jump.rb @@ -1,18 +1,18 @@ module Mom - # Unconditional jump to the Label given as target + # Unconditional jump to the Label given # Eg used at the end of while or end of if_true branch # # Risc equivalent is the same really, called Unconditional there. # class Jump < Instruction - attr_reader :target + attr_reader :label - def initialize(target) - @target = target + def initialize(label) + @label = label end def to_risc(compiler) - Risc::Unconditional.new(self , @target.to_risc(compiler)) + Risc::Unconditional.new(self , @label.to_risc(compiler)) end end