Skip to content

Commit c5a62ad

Browse files
committed
Update CoverageMapping Format Version requirements
1 parent fba15a4 commit c5a62ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/llvm-coverage-instrumentation.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,15 @@ substitution combinations), `mapgen`'s `finalize()` method queries the
221221
and `CodeRegion`s; and calls LLVM codegen APIs to generate
222222
properly-configured variables in LLVM IR, according to very specific
223223
details of the [_LLVM Coverage Mapping Format_][coverage-mapping-format]
224-
(Version 4).[^llvm-and-covmap-versions]
224+
(Version 5).[^llvm-and-covmap-versions]
225225

226226
[^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
228228
up-to-date version of the format, at the time of this writing) for improved
229229
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
233233
`rustc` is configured to use an incompatible version of LLVM, compiling with `-Z
234234
instrument-coverage` will generate an error message.
235235

0 commit comments

Comments
 (0)