rust/src/librustc_interface
bors 47ea6d90b0 Auto merge of #74091 - richkadel:llvm-coverage-map-gen-4, r=tmandry
Generating the coverage map

@tmandry @wesleywiser

rustc now generates the coverage map and can support (limited)
coverage report generation, at the function level.

Example commands to generate a coverage report:
```shell
$ BUILD=$HOME/rust/build/x86_64-unknown-linux-gnu
$ $BUILD/stage1/bin/rustc -Zinstrument-coverage \
$HOME/rust/src/test/run-make-fulldeps/instrument-coverage/main.rs
$ LLVM_PROFILE_FILE="main.profraw" ./main
called
$ $BUILD/llvm/bin/llvm-profdata merge -sparse main.profraw -o main.profdata
$ $BUILD/llvm/bin/llvm-cov show --instr-profile=main.profdata main
```
![rust coverage report only 20200706](https://user-images.githubusercontent.com/3827298/86697299-1cbe8f80-bfc3-11ea-8955-451b48626991.png)

r? @wesleywiser

Rust compiler MCP rust-lang/compiler-team#278
Relevant issue: #34701 - Implement support for LLVMs code coverage instrumentation
2020-07-19 07:25:18 +00:00
..
build.rs Locate rustc binary similarly to codegen backend loading 2019-09-10 16:57:14 -04:00
callbacks.rs Show SyntaxContext in formatted Span debug output 2020-06-08 21:47:33 -04:00
Cargo.toml Make things build again 2020-06-02 20:38:24 +03:00
interface.rs Change some function names. 2020-07-10 16:07:20 +10:00
lib.rs Initialize default providers only once 2020-07-15 10:53:36 -04:00
passes.rs Rollup merge of #73566 - jyn514:name-resolve-first, r=eddyb 2020-07-16 11:18:24 -07:00
proc_macro_decls.rs Use for<'tcx> fn pointers in Providers, instead of having Providers<'tcx>. 2020-07-05 23:00:14 +03:00
queries.rs Remove Compiler::compile(). 2020-07-07 11:10:51 +10:00
tests.rs Generating the coverage map 2020-07-17 11:49:35 -07:00
util.rs Remove leftover from emscripten fastcomp support 2020-07-16 16:46:01 +02:00