about summary refs log tree commit diff
path: root/src/librustc_session
diff options
context:
space:
mode:
authorRich Kadel <richkadel@google.com>2020-06-18 13:29:43 -0700
committerRich Kadel <richkadel@google.com>2020-06-19 09:52:04 -0700
commit8c7c84b4e8923779ff56a518e4cd39c1c600c7d0 (patch)
treeb53de4f77fa3254afc910867a2b5a273918217ed /src/librustc_session
parent791ccccddc18e83faa9963824112b14b3b1a93c2 (diff)
code coverage foundation for hash and num_counters
Replaced dummy values for hash and num_counters with computed values,
and refactored InstrumentCoverage pass to simplify injecting more
counters per function in upcoming versions.

Improved usage documentation and error messaging.
Diffstat (limited to 'src/librustc_session')
-rw-r--r--src/librustc_session/options.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_session/options.rs b/src/librustc_session/options.rs
index 2d231359057..c2d056ad26d 100644
--- a/src/librustc_session/options.rs
+++ b/src/librustc_session/options.rs
@@ -877,8 +877,9 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
         (such as entering an empty infinite loop) by inserting llvm.sideeffect \
         (default: no)"),
     instrument_coverage: bool = (false, parse_bool, [TRACKED],
-        "instrument the generated code with LLVM code region counters to \
-        (in the future) generate coverage reports (experimental; default: no)"),
+        "instrument the generated code with LLVM code region counters to (in the \
+        future) generate coverage reports (default: no; note, the compiler build \
+        config must include `profiler = true`)"),
     instrument_mcount: bool = (false, parse_bool, [TRACKED],
         "insert function instrument code for mcount-based tracing (default: no)"),
     keep_hygiene_data: bool = (false, parse_bool, [UNTRACKED],