@@ -221,15 +221,15 @@ substitution combinations), `mapgen`'s `finalize()` method queries the
221
221
and `CodeRegion `s ; and calls LLVM codegen APIs to generate
222
222
properly - configured variables in LLVM IR , according to very specific
223
223
details of the [_LLVM Coverage Mapping Format_ ][coverage - mapping - format ]
224
- (Version 4 ). [^ llvm - and - covmap - versions ]
224
+ (Version 5 ). [^ llvm - and - covmap - versions ]
225
225
226
226
[^ llvm - and - covmap - versions ]: The Rust compiler (as of
227
- January 2021 ) supports _LLVM Coverage Mapping Format_ Version 4 (the most
227
+ October 2021 ) supports _LLVM Coverage Mapping Format_ Version 5 (the most
228
228
up - to - date version of the format , at the time of this writing ) for improved
229
229
compatibility with other LLVM - based compilers (like _Clang_ ), and to take
230
- advantage of some format optimizations . Version 4 was introduced in _LLVM 11_ ,
231
- which is currently the default LLVM version for Rust . Note that the Rust
232
- compiler optionally supports some earlier LLVM versions , prior to _LLVM 11_ . If
230
+ advantage of some format optimizations . Version 5 was introduced in _LLVM 12_ ,
231
+ which is lower than the current default LLVM version for Rust . Note that the Rust
232
+ compiler optionally supports some earlier LLVM versions , prior to _LLVM 12_ . If
233
233
`rustc ` is configured to use an incompatible version of LLVM , compiling with `- Z
234
234
instrument- coverage` will generate an error message.
235
235
0 commit comments