rust/src/tools/coverage-dump
Nicholas Nethercote 301655eafe Revert introduction of [workspace.dependencies].
This was done in #145740 and #145947. It is causing problems for people
using r-a on anything that uses the rustc-dev rustup package, e.g. Miri,
clippy.

This repository has lots of submodules and subtrees and various
different projects are carved out of pieces of it. It seems like
`[workspace.dependencies]` will just be more trouble than it's worth.
2025-09-02 19:12:54 +10:00
..
src coverage-dump: Dump filenames instead of global file IDs (and bless) 2025-05-06 11:58:58 +10:00
Cargo.toml Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
README.md Add an alternate --demangle mode to coverage-dump 2024-05-31 21:52:45 +10:00

This tool extracts coverage mapping information from an LLVM IR assembly file (.ll), and prints it in a more human-readable form that can be used for snapshot tests.

The output format is mostly arbitrary, so it's OK to change the output as long as any affected tests are also re-blessed. However, the output should be consistent across different executions on different platforms, so avoid printing any information that is platform-specific or non-deterministic.

Demangle mode

When run as coverage-dump --demangle, this tool instead functions as a command-line demangler that can be invoked by llvm-cov.