fix all positioned uses as helper (not included anymore)

This commit is contained in:
Torsten Ruger
2017-01-01 21:52:55 +02:00
parent cd474f66f6
commit 0397d4064d
4 changed files with 22 additions and 21 deletions

View File

@ -27,7 +27,7 @@ module Elf
Parfait.object_space.each_type do |type|
type.methods.each do |f|
f.instructions.each_label do |label|
add_symbol "#{type.name}::#{f.name}:#{label.name}" , label.position
add_symbol "#{type.name}::#{f.name}:#{label.name}" , Positioned.position(label)
end
end
end
@ -37,12 +37,12 @@ module Elf
if( slot.respond_to? :sof_reference_name )
label = "#{slot.sof_reference_name}"
else
label = "#{slot.class.name}::#{slot.position.to_s(16)}"
label = "#{slot.class.name}::#{Positioned.position(slot).to_s(16)}"
end
label += "=#{slot}" if slot.is_a?(Symbol) or slot.is_a?(String)
add_symbol label , slot.position
add_symbol label , Positioned.position(slot)
if slot.is_a?(Parfait::TypedMethod)
add_symbol slot.name.to_s , slot.binary.position
add_symbol slot.name.to_s , Positioned.position(slot.binary)
end
end
end