Expand description
Safe wrappers for coverage-specific FFI functions.
Functions§
- covfun_
section_ 🔒name - covmap_
section_ 🔒name - covmap_
var_ 🔒name - create_
pgo_ 🔒func_ name_ var - hash_
bytes 🔒 - Hashes some bytes into a 64-bit hash, via LLVM’s
IndexedInstrProf::ComputeHash
, as required for parts of the LLVM coverage mapping format. - mapping_
version 🔒 - Returns LLVM’s
coverage::CovMapVersion::CurrentVersion
(CoverageMapping.h) as a raw numeric value. For historical reasons, the numeric value is 1 less than the number in the version’s name, soVersion7
is actually6u32
. - write_
filenames_ 🔒to_ buffer - write_
function_ 🔒mappings_ to_ buffer