coverage: Correctly report and check LLVM's coverage mapping version
This commit is contained in:
parent
a77322c16f
commit
8289dadfbc
2 changed files with 24 additions and 10 deletions
|
@ -205,5 +205,8 @@ extern "C" void LLVMRustCoverageWriteMappingVarNameToString(RustStringRef Str) {
|
|||
}
|
||||
|
||||
extern "C" uint32_t LLVMRustCoverageMappingVersion() {
|
||||
return coverage::CovMapVersion::Version6;
|
||||
// This should always be `CurrentVersion`, because that's the version LLVM
|
||||
// will use when encoding the data we give it. If for some reason we ever
|
||||
// want to override the version number we _emit_, do it on the Rust side.
|
||||
return coverage::CovMapVersion::CurrentVersion;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue