rustc_codegen_llvm::coverageinfo::mapgen

Function finalize

source
pub(crate) fn finalize(cx: &CodegenCx<'_, '_>)
Expand description

Generates and exports the coverage map, which is embedded in special linker sections in the final binary.

Those sections are then read and understood by LLVM’s llvm-cov tool, which is distributed in the llvm-tools rustup component.