add position tests

and refactor padding out
This commit is contained in:
Torsten Ruger
2018-05-05 20:11:08 +03:00
parent d65a982454
commit 3244c7d633
5 changed files with 101 additions and 61 deletions

View File

@ -37,12 +37,12 @@ module Elf
if( slot.respond_to? :sof_reference_name )
label = "#{slot.sof_reference_name}"
else
label = "#{slot.class.name}::#{Position.position(slot).to_s(16)}"
label = "#{slot.class.name}::#{Risc::Position.position(slot).to_s(16)}"
end
label += "=#{slot}" if slot.is_a?(Symbol) or slot.is_a?(String)
add_symbol label , Position.position(slot)
add_symbol label , Risc::Position.position(slot)
if slot.is_a?(Parfait::TypedMethod)
add_symbol slot.name.to_s , Position.position(slot.binary)
add_symbol slot.name.to_s , Risc::Position.position(slot.binary)
end
end
end