diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-12-13 22:40:45 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-12-17 13:55:19 +1100 |
| commit | 154fae1e8d825955ce83ae4c7d21a03db406e56c (patch) | |
| tree | a9ea166e6fcdb0f83e51ebdeca1d79485bfddde9 /compiler/rustc_codegen_llvm/src/coverageinfo/mapgen | |
| parent | fe412af4fce43aa5222b8940e068da3a19188e4b (diff) | |
| download | rust-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.rs | 4 |
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>, ) { |
