rustc_codegen_llvm::coverageinfo::mapgen

Module covfun

Source
Expand description

For each function that was instrumented for coverage, we need to embed its corresponding coverage mapping metadata inside the __llvm_covfun1 linker section of the final binary.


  1. On Windows the section name is .lcovfun

Structs§

  • Intermediate coverage metadata for a single function, used to help build the final record that will be embedded in the __llvm_covfun section.

Functions§

  • Populates the mapping region tables in the current function’s covfun record.
  • 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.
  • Convert the function’s coverage-counter expressions into a form suitable for FFI.