You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs
+3-3
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ use tracing::debug;
15
15
16
16
/// Generates and exports the Coverage Map.
17
17
///
18
-
/// This Coverage Map complies with Coverage Mapping Format version 3 (zero-based encoded as 2),
19
-
/// as defined at [LLVM Code Coverage Mapping Format](https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#llvm-code-coverage-mapping-format)
20
-
/// and published in Rust's current (July 2020) fork of LLVM. This version is supported by the
18
+
/// This Coverage Map complies with Coverage Mapping Format version 4 (zero-based encoded as 3),
19
+
/// as defined at [LLVM Code Coverage Mapping Format](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/docs/CoverageMappingFormat.rst#llvm-code-coverage-mapping-format)
20
+
/// and published in Rust's current (November 2020) fork of LLVM. This version is supported by the
21
21
/// LLVM coverage tools (`llvm-profdata` and `llvm-cov`) bundled with Rust's fork of LLVM.
22
22
///
23
23
/// Consequently, Rust's bundled version of Clang also generates Coverage Maps compliant with
/// Aligns with [llvm::coverage::CounterMappingRegion::RegionKind](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L205-L221)
645
+
/// Aligns with [llvm::coverage::CounterMappingRegion::RegionKind](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L206-L222)
646
646
#[derive(Copy,Clone,Debug)]
647
647
#[repr(C)]
648
648
pubenumRegionKind{
@@ -665,13 +665,13 @@ pub mod coverageinfo {
665
665
666
666
/// This struct provides LLVM's representation of a "CoverageMappingRegion", encoded into the
/// The struct composes fields representing the `Counter` type and value(s) (injected counter
670
670
/// ID, or expression type and operands), the source file (an indirect index into a "filenames
671
671
/// array", encoded separately), and source location (start and end positions of the represented
672
672
/// code region).
673
673
///
674
-
/// Aligns with [llvm::coverage::CounterMappingRegion](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L223-L226)
674
+
/// Aligns with [llvm::coverage::CounterMappingRegion](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L224-L227)
675
675
/// Important: The Rust struct layout (order and types of fields) must match its C++
Copy file name to clipboardExpand all lines: compiler/rustc_codegen_ssa/src/coverageinfo/ffi.rs
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
use rustc_middle::mir::coverage::{CounterValueReference,MappedExpressionIndex};
2
2
3
-
/// Aligns with [llvm::coverage::Counter::CounterKind](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L91)
3
+
/// Aligns with [llvm::coverage::Counter::CounterKind](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L206-L222)
4
4
#[derive(Copy,Clone,Debug)]
5
5
#[repr(C)]
6
6
pubenumCounterKind{
@@ -17,7 +17,7 @@ pub enum CounterKind {
17
17
/// `instrprof.increment()`)
18
18
/// * For `CounterKind::Expression`, `id` is the index into the coverage map's array of
19
19
/// counter expressions.
20
-
/// Aligns with [llvm::coverage::Counter](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L98-L99)
20
+
/// Aligns with [llvm::coverage::Counter](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L99-L100)
21
21
/// Important: The Rust struct layout (order and types of fields) must match its C++ counterpart.
22
22
#[derive(Copy,Clone,Debug)]
23
23
#[repr(C)]
@@ -41,15 +41,15 @@ impl Counter {
41
41
}
42
42
}
43
43
44
-
/// Aligns with [llvm::coverage::CounterExpression::ExprKind](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L146)
44
+
/// Aligns with [llvm::coverage::CounterExpression::ExprKind](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L147)
45
45
#[derive(Copy,Clone,Debug)]
46
46
#[repr(C)]
47
47
pubenumExprKind{
48
48
Subtract = 0,
49
49
Add = 1,
50
50
}
51
51
52
-
/// Aligns with [llvm::coverage::CounterExpression](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L147-L148)
52
+
/// Aligns with [llvm::coverage::CounterExpression](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L148-L149)
53
53
/// Important: The Rust struct layout (order and types of fields) must match its C++
0 commit comments