class AdLint::Ld::MapFunctionPhase
Public Class Methods
new(phase_ctxt)
click to toggle source
Calls superclass method
AdLint::Ld::LdPhase::new
# File lib/adlint/ld/phase.rb, line 65 def initialize(phase_ctxt) super(phase_ctxt, "mfn") end
Private Instance Methods
do_execute(phase_ctxt, monitor)
click to toggle source
# File lib/adlint/ld/phase.rb, line 70 def do_execute(phase_ctxt, monitor) mapper = FunctionMapper.new phase_ctxt[:metric_fpaths].each do |fpath| mapper.execute(fpath) monitor.progress += 1.0 / phase_ctxt[:metric_fpaths].size end phase_ctxt[:ld_function_map] = mapper.map end