change block_yield to_risc to use builder

only changes the order of two instructions
This commit is contained in:
Torsten Ruger
2018-08-16 08:58:49 +03:00
parent 1dabe0fda1
commit ce157ffa94
4 changed files with 39 additions and 35 deletions

View File

@ -155,8 +155,8 @@ module Risc
end
# Build with builder (see there), adding the created instructions
def build(&block)
builder.build(&block)
def build(source , &block)
code_builder(source).build(&block)
end
# return a new code builder that uses this compiler