about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/spans.rs
AgeCommit message (Collapse)AuthorLines
2025-07-30coverage: Re-land "Enlarge empty spans during MIR instrumentation"Zalathar-24/+4
This allows us to assume that coverage spans will only be discarded during codegen in very unusual situations.
2025-07-26Revert "coverage: Enlarge empty spans during MIR instrumentation, not codegen"Zalathar-4/+24
This reverts commit f877aa7d14916f71a2f88c6d4c009e7ded7684c4.
2025-07-22coverage: Enlarge empty spans during MIR instrumentation, not codegenZalathar-24/+4
This allows us to assume that coverage spans will only be discarded during codegen in very unusual situations.
2025-05-27coverage: Revert "unused local file IDs" due to empty function namesZalathar-4/+24
This reverts commit 3b22c21dd8c30f499051fe7a758ca0e5d81eb638, reversing changes made to 5f292eea6d63abbd26f1e6e00a0b8cf21d828d7d.
2025-05-10coverage: Enlarge empty spans during MIR instrumentation, not codegenZalathar-24/+4
This allows us to assume that coverage spans will only be discarded during codegen in very unusual situations.
2025-03-20coverage: Convert and check span coordinates without a local file IDZalathar-14/+31
For expansion region support, we will want to be able to convert and check spans before creating a corresponding local file ID. If we create local file IDs eagerly, but some expansion turns out to have no successfully-converted spans, LLVM will complain about that expansion's file ID having no regions.
2025-03-18coverage: Don't refer to the body span when enlarging empty spansZalathar-23/+7
Given that we now only enlarge empty spans to "{" or "}", there shouldn't be any danger of enlarging beyond a function body.
2024-12-19coverage: Store coverage source regions as `Span` until codegenZalathar-0/+126
2024-11-29Revert "Rollup merge of #133418 - Zalathar:spans, r=jieyouxu"Zalathar-124/+0
This reverts commit adf9b5fcd1de43eaf0a779e10612caee8b47bede, reversing changes made to af1ca153d4aed5ffe22445273aa388a8d3f8f4ae. Reverting due to <https://github.com/rust-lang/rust/issues/133606>.
2024-11-24coverage: Store coverage source regions as `Span` until codegenZalathar-0/+124