generate_covmap_record in rustc_codegen_llvm::coverageinfo::mapgen - Rust
Description: Generates the contents of the covmap record for this CGU, which mostly consists of a header and a list of filenames. The record is then stored as a global variable in the `__llvm_covmap` section.

Skip to main content

## generate_covmap_record

# Function generate_covmap_record

Source

    fn generate_covmap_record<'ll>(
        cx: &mut GenericCx<'ll, FullCx<'ll, '_>>,
        version: CovmapVersion,
        filenames_buffer: &[u8],
    )

Expand description

Generates the contents of the covmap record for this CGU, which mostly consists of a header and a list of filenames. The record is then stored as a global variable in the `__llvm_covmap` section.