about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/build_system/tests.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-21 16:47:30 +0000
committerbors <bors@rust-lang.org>2023-10-21 16:47:30 +0000
commit0d1664674a620f2c139be756a5cf7b1b057bc3a9 (patch)
tree11ed8cd6323e3bcaa0138cc8d8172fd311415c28 /compiler/rustc_codegen_cranelift/build_system/tests.rs
parentad7b8a0820daad0700b6bb1c428503dc4484592e (diff)
parent6f1ca8d9ebca7960408584b3b325dca50fcb781d (diff)
downloadrust-0d1664674a620f2c139be756a5cf7b1b057bc3a9.tar.gz
rust-0d1664674a620f2c139be756a5cf7b1b057bc3a9.zip
Auto merge of #116922 - Zalathar:unused, r=cjgillot
coverage: Emit mappings for unused functions without generating stubs

For a while I've been annoyed by the fact that generating coverage maps for unused functions involves generating a stub function at the LLVM level.

As I suspected, generating that stub function isn't actually necessary, as long as we specifically tell LLVM about the symbol names of all the functions that have coverage mappings but weren't codegenned (due to being unused).

---

There is some helper code that gets moved around in the follow-up patches, so look at the first patch to see the most important functional changes.

---

`@rustbot` label +A-code-coverage
Diffstat (limited to 'compiler/rustc_codegen_cranelift/build_system/tests.rs')
0 files changed, 0 insertions, 0 deletions