Module mapgen

Source

Modules§

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

Structs§

GlobalFileId 🔒
An index into the CGU’s overall list of file paths. The underlying paths will be embedded in the __llvm_covmap linker section.
GlobalFileTable 🔒
Maps “global” (per-CGU) file ID numbers to their underlying source file paths.
LocalFileId 🔒
An index into a function’s list of global file IDs. That underlying list of local-to-global mappings will be embedded in the function’s record in the __llvm_covfun linker section.
VirtualFileMapping 🔒
Holds a mapping from “local” (per-function) file IDs to their corresponding source files.

Functions§

finalize 🔒
Generates and exports the coverage map, which is embedded in special linker sections in the final binary.
generate_covmap_record 🔒
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.