about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-06-17 04:53:57 +0100
committerGitHub <noreply@github.com>2024-06-17 04:53:57 +0100
commitd9af579747f2962b290386a25430f4a6cbc2b2b5 (patch)
treeb3be476653ee5b3c10585d6f22816850233cfe73 /compiler/rustc_codegen_llvm/src
parent61577a87343d30f814c0b4cf76fbb934225521e1 (diff)
parent2d3e6c88048fd19921346c9e945ccdf64fe97939 (diff)
downloadrust-d9af579747f2962b290386a25430f4a6cbc2b2b5.tar.gz
rust-d9af579747f2962b290386a25430f4a6cbc2b2b5.zip
Rollup merge of #126535 - Zalathar:covspans, r=nnethercote
coverage: Arrange span extraction/refinement as a series of passes

The old code for extracting/refining coverage spans from MIR has been dismantled and split up into several passes (e.g. see #126294), but because this was done incrementally, the resulting code is disorganised.

This PR addresses that by moving the main control-flow into a single function (`coverage::spans::extract_refined_covspans`) that more clearly shows the process as a series of separate steps, most delegated to helper functions in the same file.

This should make it easier to understand and modify the refinement process. It also means that submodule `from_mir` is now only concerned with the details of extracting relevant spans from the various kinds of MIR statement/terminator.

There should be no change to the resulting coverage maps, as demonstrated by the lack of changes to tests.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions