Module unused

Source

Structs§

UnusedInstance 🔒
Holds a dummy function instance along with its symbol name, to avoid having to repeatedly query for the name.
UsageSets 🔒

Functions§

gather_unused_function_instances 🔒
make_dummy_instance 🔒
prepare_covfun_records_for_unused_functions 🔒
Each CGU will normally only emit coverage metadata for the functions that it actually generates. But since we don’t want unused functions to disappear from coverage reports, we also scan for functions that were instrumented but are not participating in codegen.
prepare_usage_sets 🔒
Prepare sets of definitions that are relevant to deciding whether something is an “unused function” for coverage purposes.