remove MethodCall and thus all virtual instructions

This commit is contained in:
Torsten Ruger
2015-10-18 19:27:46 +03:00
parent 15b570f5cf
commit d767caf479
20 changed files with 24 additions and 72 deletions

View File

@ -81,7 +81,7 @@ module Virtual
# add an instruction after the current (insertion point)
# the added instruction will become the new insertion point
def add_code instruction
unless (instruction.is_a?(Instruction) or instruction.is_a?(Register::Instruction))
unless instruction.is_a?(Register::Instruction)
raise instruction.to_s
end
@current.add_code(instruction) #insert after current