metasm/cpu/st20/decode.rb in metasm-1.0.3 vs metasm/cpu/st20/decode.rb in metasm-1.0.4
- old
+ new
@@ -167,14 +167,7 @@
# returns true if the expression is an address on the stack
def backtrace_is_stack_address(expr)
Expression[expr].expr_externals.include?(:sp)
end
-
- # updates an instruction's argument replacing an expression with another (eg label renamed)
- def replace_instr_arg_immediate(i, old, new)
- i.args.map! { |a|
- a == old ? new : Expression[a.bind(old => new).reduce]
- }
- end
end
end