about summary refs log tree commit diff
path: root/src/librustc_session
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-07-29 20:35:52 +0000
committerbors <bors@rust-lang.org>2020-07-29 20:35:52 +0000
commitdb0492ace429cfeb3567e2c04e300be7df9972ff (patch)
treebdaef57c8b3bace8e9939edd479d945a2da53633 /src/librustc_session
parent8611e526b766ce188dc29bd49bf66ff17764ceea (diff)
parent5b2e2b25e41afbbd0ad803f7986d8559ef649a7e (diff)
Auto merge of #74733 - richkadel:llvm-coverage-map-gen-5, r=tmandry
Fixed coverage map issues; better aligned with LLVM APIs

Found some problems with the coverage map encoding when testing with more than one counter per function.

While debugging, I realized some better ways to structure the Rust implementation of the coverage mapping generator. I refactored somewhat, resulting in less code overall, expanded coverage of LLVM Coverage Map capabilities, and much closer alignment with LLVM data structures, APIs, and naming.

This should be easier to follow and easier to maintain.

r? @tmandry

Rust compiler MCP rust-lang/compiler-team#278
Relevant issue: #34701 - Implement support for LLVMs code coverage instrumentation
Diffstat (limited to 'src/librustc_session')
-rw-r--r--src/librustc_session/options.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_session/options.rs b/src/librustc_session/options.rs
index 502102fa178..80164840334 100644
--- a/src/librustc_session/options.rs
+++ b/src/librustc_session/options.rs
@@ -883,7 +883,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
         "instrument the generated code to support LLVM source-based code coverage \
         reports (note, the compiler build config must include `profiler = true`, \
         and is mutually exclusive with `-C profile-generate`/`-C profile-use`); \
-        implies `-C link-dead-code` (unless explicitly disabled)` and
+        implies `-C link-dead-code` (unless explicitly disabled)` and \
         `-Z symbol-mangling-version=v0`; and disables/overrides some optimization \
         options (default: no)"),
     instrument_mcount: bool = (false, parse_bool, [TRACKED],