diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-12-18 21:00:51 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-12-19 18:09:09 +1100 |
| commit | 34ed51cb837d1dd755b9b97798a41c8cd0358ca6 (patch) | |
| tree | 982d077781d42c6c985f9c4b643915b72a4e372e /compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs | |
| parent | c3780e1d227d7544209e2cd722ac4fa35ac61b56 (diff) | |
| download | rust-34ed51cb837d1dd755b9b97798a41c8cd0358ca6.tar.gz rust-34ed51cb837d1dd755b9b97798a41c8cd0358ca6.zip | |
coverage: Store coverage source regions as `Span` until codegen
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs index ca334286200..7d3bb4f93f6 100644 --- a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs +++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs @@ -22,6 +22,7 @@ use crate::coverageinfo::mapgen::covfun::prepare_covfun_record; use crate::llvm; mod covfun; +mod spans; /// Generates and exports the coverage map, which is embedded in special /// linker sections in the final binary. @@ -182,7 +183,7 @@ rustc_index::newtype_index! { /// An index into a function's list of global file IDs. That underlying list /// of local-to-global mappings will be embedded in the function's record in /// the `__llvm_covfun` linker section. - pub(crate) struct LocalFileId {} + struct LocalFileId {} } /// Holds a mapping from "local" (per-function) file IDs to "global" (per-CGU) |
