@@ -1957,15 +1957,23 @@ extern "rust-intrinsic" {
19571957 /// Internal placeholder for injecting code coverage counters when the "instrument-coverage"
19581958 /// option is enabled. The placeholder is replaced with `llvm.instrprof.increment` during code
19591959 /// generation.
1960+ #[ cfg( not( bootstrap) ) ]
19601961 #[ lang = "count_code_region" ]
1961- pub fn count_code_region ( index : u32 , start_byte_pos : u32 , end_byte_pos : u32 ) ;
1962+ pub fn count_code_region (
1963+ function_source_hash : u64 ,
1964+ index : u32 ,
1965+ start_byte_pos : u32 ,
1966+ end_byte_pos : u32 ,
1967+ ) ;
19621968
19631969 /// Internal marker for code coverage expressions, injected into the MIR when the
19641970 /// "instrument-coverage" option is enabled. This intrinsic is not converted into a
19651971 /// backend intrinsic call, but its arguments are extracted during the production of a
19661972 /// "coverage map", which is injected into the generated code, as additional data.
19671973 /// This marker identifies a code region and two other counters or counter expressions
19681974 /// whose sum is the number of times the code region was executed.
1975+ #[ cfg( not( bootstrap) ) ]
1976+ #[ lang = "coverage_counter_add" ]
19691977 pub fn coverage_counter_add (
19701978 index : u32 ,
19711979 left_index : u32 ,
@@ -1977,6 +1985,8 @@ extern "rust-intrinsic" {
19771985 /// This marker identifies a code region and two other counters or counter expressions
19781986 /// whose difference is the number of times the code region was executed.
19791987 /// (See `coverage_counter_add` for more information.)
1988+ #[ cfg( not( bootstrap) ) ]
1989+ #[ lang = "coverage_counter_subtract" ]
19801990 pub fn coverage_counter_subtract (
19811991 index : u32 ,
19821992 left_index : u32 ,
0 commit comments