Correctly mark parameter RustMappingRegions as pointer-to-const

The regions don't need to be mutable because we pass a copy of them to LLVM
instead, and this matches the `*const` in the Rust-side signature.
This commit is contained in:
Zalathar 2023-05-09 18:38:47 +10:00
parent 7cab196e7c
commit 9addf0651c

View file

@ -121,7 +121,7 @@ extern "C" void LLVMRustCoverageWriteMappingToBuffer(
unsigned NumVirtualFileMappingIDs, unsigned NumVirtualFileMappingIDs,
const LLVMRustCounterExpression *RustExpressions, const LLVMRustCounterExpression *RustExpressions,
unsigned NumExpressions, unsigned NumExpressions,
LLVMRustCounterMappingRegion *RustMappingRegions, const LLVMRustCounterMappingRegion *RustMappingRegions,
unsigned NumMappingRegions, unsigned NumMappingRegions,
RustStringRef BufferOut) { RustStringRef BufferOut) {
// Convert from FFI representation to LLVM representation. // Convert from FFI representation to LLVM representation.