about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/graph.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-12 00:03:09 +0000
committerbors <bors@rust-lang.org>2023-09-12 00:03:09 +0000
commit725afd287a27891eec607d6859bce2a551114181 (patch)
tree669f4ab20d07cc01fbac537749fe45823730bb14 /compiler/rustc_mir_transform/src/coverage/graph.rs
parentb4e54c6e39984840a04dcd02d14ec8c3574d30e5 (diff)
parent6e968b1e454d87870e8afff1a60ed706bad7377d (diff)
downloadrust-725afd287a27891eec607d6859bce2a551114181.tar.gz
rust-725afd287a27891eec607d6859bce2a551114181.zip
Auto merge of #115671 - Zalathar:mapgen, r=wesleywiser
coverage: Clean up encoding of per-function coverage mapping payloads

This PR contains several small improvements to the code in `rustc_codegen_llvm::coverageinfo::mapgen` that prepares a function's coverage mappings for FFI, and passes them over to LLVM to be encoded into a vector of bytes.

These changes are in preparation for some future changes to the coverage implementation, but they should all stand on their own as worthwhile.

There shouldn't be any changes to the resulting coverage mappings, as verified by the existing `tests/coverage-map` and `tests/run-coverage` suites.

The changes are mostly independent of each other, though they are indirectly affected by the indentation changes made when introducing `GlobalFileTable`.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions