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" {
19431943 pub fn miri_start_panic ( payload : * mut u8 ) -> !;
19441944}
19451945
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) ]
19461952#[ cfg( not( bootstrap) ) ]
19471953#[ cfg_attr( not( bootstrap) , lang = "count_code_region" ) ]
19481954pub fn count_code_region ( _index : u32 ) {
You can’t perform that action at this time.
0 commit comments