pass a source into the builder

for debugging
This commit is contained in:
Torsten Ruger
2018-04-18 19:12:30 +03:00
parent df08cb78e2
commit 059ff4a868
8 changed files with 21 additions and 18 deletions

View File

@ -110,8 +110,9 @@ module Risc
# return a new builder that uses this compiler
# must specify weather to add code automatically to compiler
def builder( auto_add )
Builder.new(self , auto_add)
# second arg is the source for which to build, either method or mom::instruction
def builder( auto_add , source)
Builder.new(self , auto_add , source)
end
end
end