return the linker from mom_compiler

linker holds assemblers
assemblers come from method compilation
and so the layers come into focus
This commit is contained in:
Torsten Ruger
2018-07-01 21:51:48 +03:00
parent 5f2a256608
commit 22408b86c6
8 changed files with 35 additions and 30 deletions

View File

@ -61,7 +61,9 @@ module Risc
end
end
# add a constant (which get created during compilation and need to be linked)
def add_constant(const)
raise "Must be Parfait #{const}" unless const.is_a?(Parfait::Object)
@constants << const
end