about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-03-21 15:14:22 +1100
committerZalathar <Zalathar@users.noreply.github.com>2025-04-06 13:55:28 +1000
commitb3c40cf374422ac8f6cbb14fa6747b2fae5762db (patch)
treeebf3d0be80760eb765bba9ff6f5e672696d186b7 /compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs
parent75135aaf19f22637b60b0e29255f0000029bdbf9 (diff)
downloadrust-b3c40cf374422ac8f6cbb14fa6747b2fae5762db.tar.gz
rust-b3c40cf374422ac8f6cbb14fa6747b2fae5762db.zip
coverage: Deal with unused functions and their names in one place
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs
index 048e1988c32..93419c2caad 100644
--- a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs
+++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs
@@ -37,14 +37,6 @@ pub(crate) struct CovfunRecord<'tcx> {
     regions: ffi::Regions,
 }
 
-impl<'tcx> CovfunRecord<'tcx> {
-    /// FIXME(Zalathar): Make this the responsibility of the code that determines
-    /// which functions are unused.
-    pub(crate) fn mangled_function_name_if_unused(&self) -> Option<&'tcx str> {
-        (!self.is_used).then_some(self.mangled_function_name)
-    }
-}
-
 pub(crate) fn prepare_covfun_record<'tcx>(
     tcx: TyCtxt<'tcx>,
     global_file_table: &mut GlobalFileTable,