Skip to content

Commit ed0743e

Browse files
committed
coverage: Rename add_unused_functions to synthesize_unused_functions
1 parent ebcb1b9 commit ed0743e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub fn finalize(cx: &CodegenCx<'_, '_>) {
4040
// MIR `Coverage` code regions to the `function_coverage_map`, before calling
4141
// `ctx.take_function_coverage_map()`.
4242
if cx.codegen_unit.is_code_coverage_dead_code_cgu() {
43-
unused::add_unused_functions(cx);
43+
unused::synthesize_unused_functions(cx);
4444
}
4545

4646
let function_coverage_map = match cx.coverage_context() {

compiler/rustc_codegen_llvm/src/coverageinfo/unused.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use rustc_middle::ty::{self, GenericArgs, Instance, Ty};
3030
/// "code coverage dead code cgu" during the partitioning process. This prevents us from generating
3131
/// code regions for the same function more than once which can lead to linker errors regarding
3232
/// duplicate symbols.
33-
pub(crate) fn add_unused_functions(cx: &CodegenCx<'_, '_>) {
33+
pub(crate) fn synthesize_unused_functions(cx: &CodegenCx<'_, '_>) {
3434
assert!(cx.codegen_unit.is_code_coverage_dead_code_cgu());
3535

3636
let tcx = cx.tcx;

0 commit comments

Comments
 (0)