about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-12-13 22:40:45 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-12-17 13:55:19 +1100
commit154fae1e8d825955ce83ae4c7d21a03db406e56c (patch)
treea9ea166e6fcdb0f83e51ebdeca1d79485bfddde9 /compiler/rustc_codegen_llvm/src/coverageinfo/mapgen
parentfe412af4fce43aa5222b8940e068da3a19188e4b (diff)
downloadrust-154fae1e8d825955ce83ae4c7d21a03db406e56c.tar.gz
rust-154fae1e8d825955ce83ae4c7d21a03db406e56c.zip
coverage: Build the global file table on the fly
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mapgen')
-rw-r--r--compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs
index 33e7a0f2f20..6a151d3c2b0 100644
--- a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs
+++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs
@@ -45,7 +45,7 @@ impl<'tcx> CovfunRecord<'tcx> {
 
 pub(crate) fn prepare_covfun_record<'tcx>(
     tcx: TyCtxt<'tcx>,
-    global_file_table: &GlobalFileTable,
+    global_file_table: &mut GlobalFileTable,
     instance: Instance<'tcx>,
     function_coverage: &FunctionCoverage<'tcx>,
 ) -> Option<CovfunRecord<'tcx>> {
@@ -75,7 +75,7 @@ pub(crate) fn prepare_covfun_record<'tcx>(
 /// Populates the mapping region tables in the current function's covfun record.
 fn fill_region_tables<'tcx>(
     tcx: TyCtxt<'tcx>,
-    global_file_table: &GlobalFileTable,
+    global_file_table: &mut GlobalFileTable,
     function_coverage: &FunctionCoverage<'tcx>,
     covfun: &mut CovfunRecord<'tcx>,
 ) {