# Function rustc_codegen_llvm::coverageinfo::covfun_section_name

source ·

    pub(crate) fn covfun_section_name(cx: &CodegenCx<'_, '_>) -> String

Expand description

Returns the section name string to pass through to the linker when embedding per-function coverage information in the object file, according to the target platform’s object file format.

LLVM’s coverage tools read coverage mapping details from this section when producing coverage reports.

Typical values are:

- `__llvm_covfun` on Linux
- `__LLVM_COV,__llvm_covfun` on macOS (includes `__LLVM_COV,` segment prefix)
- `.lcovfun$M` on Windows (includes `$M` sorting suffix)