File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,14 @@ statically links coverage-instrumented binaries with LLVM runtime code
56
56
([ compiler-rt] [ compiler-rt-profile ] ) that implements program hooks
57
57
(such as an ` exit ` hook) to write the counter values to the ` .profraw ` file.
58
58
59
- In the ` rustc ` source tree, ` library/profiler_builtins ` bundles the LLVM
60
- ` compiler-rt ` code into a Rust library crate. (When building ` rustc ` , the
61
- ` profiler_builtins ` library is only included when ` profiler = true ` is set
62
- in ` rustc ` 's ` config.toml ` .)
59
+ In the ` rustc ` source tree,
60
+ ` library/profiler_builtins ` bundles the LLVM ` compiler-rt ` code into a Rust library crate.
61
+ Note that when building ` rustc ` ,
62
+ ` profiler_builtins ` is only included when ` build.profiler = true ` is set in ` config.toml ` .
63
63
64
64
When compiling with ` -C instrument-coverage ` ,
65
- [ ` CrateLoader::postprocess() ` ] [ crate-loader-postprocess ] dynamically loads the
66
- ` profiler_builtins ` library by calling ` inject_profiler_runtime() ` .
65
+ [ ` CrateLoader::postprocess() ` ] [ crate-loader-postprocess ] dynamically loads
66
+ ` profiler_builtins ` by calling ` inject_profiler_runtime() ` .
67
67
68
68
[ compiler-rt-profile ] : https://github.com/llvm/llvm-project/tree/main/compiler-rt/lib/profile
69
69
[ crate-loader-postprocess ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_metadata/creader/struct.CrateLoader.html#method.postprocess
You can’t perform that action at this time.
0 commit comments