rust/src/librustc_codegen_ssa
bors dab2ae0404 Auto merge of #75037 - richkadel:llvm-coverage-map-gen-5.2, r=wesleywiser
Completes support for coverage in external crates

Follow-up to #74959 :

The prior PR corrected for errors encountered when trying to generate
the coverage map on source code inlined from external crates (including
macros and generics) by avoiding adding external DefIds to the coverage
map.

This made it possible to generate a coverage report including external
crates, but the external crate coverage was incomplete (did not include
coverage for the DefIds that were eliminated.

The root issue was that the coverage map was converting Span locations
to source file and locations, using the SourceMap for the current crate,
and this would not work for spans from external crates (compliled with a
different SourceMap).

The solution was to convert the Spans to filename and location during
MIR generation instead, so precompiled external crates would already
have the correct source code locations embedded in their MIR, when
imported into another crate.

@wesleywiser FYI
r? @tmandry
2020-08-05 05:08:19 +00:00
..
back Auto merge of #72049 - mati865:mingw-lld, r=petrochenkov 2020-07-29 13:58:19 +00:00
coverageinfo Completes support for coverage in external crates 2020-08-04 11:06:54 -07:00
debuginfo debuginfo: add type metadata for params 2020-07-20 11:23:31 +01:00
mir rustc: Improving safe wasm float->int casts 2020-07-28 10:17:11 -07:00
traits Auto merge of #75037 - richkadel:llvm-coverage-map-gen-5.2, r=wesleywiser 2020-08-05 05:08:19 +00:00
base.rs Avoid "whitelist" 2020-07-10 07:39:28 -04:00
Cargo.toml Move from log to tracing 2020-07-31 22:38:20 +02:00
common.rs Prepare for LLVM 11 2020-06-25 18:52:41 -07:00
glue.rs rustc -> rustc_middle part 2 2020-03-30 07:16:56 +02:00
lib.rs FunctionCoverage: improve type checking with newtype_index types 2020-07-28 17:45:58 -07:00
meth.rs [AVR] Correctly set the pointer address space when constructing pointers to functions 2020-07-22 05:16:22 +12:00
mono_item.rs Change SymbolName::name to a &str. 2020-07-15 14:37:55 +10:00
README.md fix rustc-dev-guide url in src/librustc_codegen_ssa 2020-04-10 22:48:34 +08:00

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.