File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1943,6 +1943,12 @@ extern "rust-intrinsic" {
1943
1943
pub fn miri_start_panic ( payload : * mut u8 ) -> !;
1944
1944
}
1945
1945
1946
+ // Since `count_code_region` is lang_item, it must have a function body that the compiler can use
1947
+ // to register its DefId with the lang_item entry. This function body is never actually called
1948
+ // (and is therefore implemented as an aborting stub) because it is replaced with the
1949
+ // LLVM intrinsic `llvm.instrprof.increment` by
1950
+ // `rustc_codegen_llvm::intrinsic::IntrinsicCallMethods::codegen_intrinsic_call()`.
1951
+ #[ doc( hidden) ]
1946
1952
#[ cfg( not( bootstrap) ) ]
1947
1953
#[ cfg_attr( not( bootstrap) , lang = "count_code_region" ) ]
1948
1954
pub fn count_code_region ( _index : u32 ) {
You can’t perform that action at this time.
0 commit comments