Module rustc_codegen_llvm::coverageinfo::ffi
source · Structs
- A reference to an instance of an abstract “counter” that will yield a value in a coverage report. Note that
id
has different interpretations, depending on thekind
: - Corresponds to struct
llvm::coverage::CounterExpression
. - This struct provides LLVM’s representation of a “CoverageMappingRegion”, encoded into the coverage map, in accordance with the LLVM Code Coverage Mapping Format. The struct composes fields representing the
Counter
type and value(s) (injected counter ID, or expression type and operands), the source file (an indirect index into a “filenames array”, encoded separately), and source location (start and end positions of the represented code region).
Enums
- Must match the layout of
LLVMRustCounterKind
. - Corresponds to enum
llvm::coverage::CounterExpression::ExprKind
. - Corresponds to enum
llvm::coverage::CounterMappingRegion::RegionKind
.