generate_covfun_record in rustc_codegen_llvm::coverageinfo::mapgen::covfun - Rust
Description: Generates the contents of the covfun record for this function, which contains the function’s coverage mapping data. The record is then stored as a global variable in the `__llvm_covfun` section.

Skip to main content

## generate_covfun_record

# Function generate_covfun_record

Source

    pub(crate) fn generate_covfun_record<'tcx>(
        cx: &mut GenericCx<'_, FullCx<'_, 'tcx>>,
        global_file_table: &GlobalFileTable,
        covfun: &CovfunRecord<'tcx>,
    )

Expand description

Generates the contents of the covfun record for this function, which contains the function’s coverage mapping data. The record is then stored as a global variable in the `__llvm_covfun` section.