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.
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.
Version number that will be included the __llvm_covmap section header.
Corresponds to LLVM’s llvm::coverage::CovMapVersion (in CoverageMapping.h),
or at least the subset that we know and care about.
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.