generalize assemblers to use callables

not just methods,  they are almost the same anyway
This commit is contained in:
Torsten Ruger
2018-07-30 10:23:42 +03:00
parent 4055709529
commit 285a88b59f
7 changed files with 16 additions and 16 deletions

View File

@ -24,7 +24,7 @@ module Elf
# for debug add labels for labels
@linker.assemblers.each do |asm|
meth = asm.method
meth = asm.callable
asm.instructions.each do |label|
next unless label.is_a?(Risc::Label)
add_symbol "#{meth.self_type.name}@#{meth.name}:Label=#{label.name}" , Risc::Position.get(label).at