summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_codegen_ssa/src/traits/coverageinfo.rs
blob: 7e8de0ddc5bf4de08c1f39957f5764f330216041 (plain)
1
2
3
4
5
6
7
8
9
10
11
use super::BackendTypes;
use rustc_middle::mir::Coverage;
use rustc_middle::ty::Instance;

pub trait CoverageInfoBuilderMethods<'tcx>: BackendTypes {
    /// Handle the MIR coverage info in a backend-specific way.
    ///
    /// This can potentially be a no-op in backends that don't support
    /// coverage instrumentation.
    fn add_coverage(&mut self, instance: Instance<'tcx>, coverage: &Coverage);
}