Struct rustc_codegen_llvm::coverageinfo::CrateCoverageContext [−][src]
pub struct CrateCoverageContext<'ll, 'tcx> {
pub(crate) function_coverage_map: RefCell<FxHashMap<Instance<'tcx>, FunctionCoverage<'tcx>>>,
pub(crate) pgo_func_name_var_map: RefCell<FxHashMap<Instance<'tcx>, &'ll Value>>,
}Expand description
A context object for maintaining all state needed by the coverageinfo module.
Fields
function_coverage_map: RefCell<FxHashMap<Instance<'tcx>, FunctionCoverage<'tcx>>>pgo_func_name_var_map: RefCell<FxHashMap<Instance<'tcx>, &'ll Value>>Implementations
impl<'ll, 'tcx> CrateCoverageContext<'ll, 'tcx>[src]
impl<'ll, 'tcx> CrateCoverageContext<'ll, 'tcx>[src]pub fn new() -> Self[src]
pub fn take_function_coverage_map(
&self
) -> FxHashMap<Instance<'tcx>, FunctionCoverage<'tcx>>[src]
&self
) -> FxHashMap<Instance<'tcx>, FunctionCoverage<'tcx>>