rust/src/tools/coverage-dump
Zalathar 9abfebdf1e Add an alternate --demangle mode to coverage-dump
The coverage-dump tool already needs `rustc_demangle` for its own purposes, so
the amount of extra code needed for a demangle mode is very small.
2024-05-31 21:52:45 +10:00
..
src Add an alternate --demangle mode to coverage-dump 2024-05-31 21:52:45 +10:00
Cargo.toml Add tool src/tools/coverage-dump for use by some new coverage tests 2023-09-05 11:11:48 +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.