RustWrapper: adapt for coverage mapping API changes
This commit is contained in:
parent
bc1b9e0e9a
commit
14ec3b6c91
@ -139,7 +139,7 @@ extern "C" void LLVMRustCoverageWriteMappingToBuffer(
|
|||||||
RustMappingRegions, NumMappingRegions)) {
|
RustMappingRegions, NumMappingRegions)) {
|
||||||
MappingRegions.emplace_back(
|
MappingRegions.emplace_back(
|
||||||
fromRust(Region.Count), fromRust(Region.FalseCount),
|
fromRust(Region.Count), fromRust(Region.FalseCount),
|
||||||
#if LLVM_VERSION_GE(18, 0)
|
#if LLVM_VERSION_GE(18, 0) && LLVM_VERSION_LT(19, 0)
|
||||||
coverage::CounterMappingRegion::MCDCParameters{},
|
coverage::CounterMappingRegion::MCDCParameters{},
|
||||||
#endif
|
#endif
|
||||||
Region.FileID, Region.ExpandedFileID,
|
Region.FileID, Region.ExpandedFileID,
|
||||||
|
Loading…
Reference in New Issue
Block a user