about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-08 15:41:44 +0000
committerbors <bors@rust-lang.org>2023-08-08 15:41:44 +0000
commitf525bb4e2afac6d2491a86c178aa98e3f3931130 (patch)
treed44d3c836016870be589a48d9df7e4b6d222b123 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs
parentbf62436bce9668118bc4d5f7795f08745d478ac0 (diff)
parent9d417d7c86259498855fc50ba0e853edbb13320d (diff)
downloadrust-f525bb4e2afac6d2491a86c178aa98e3f3931130.tar.gz
rust-f525bb4e2afac6d2491a86c178aa98e3f3931130.zip
Auto merge of #114439 - Kobzol:remark-pgo-hotness, r=tmiasko
Add hotness data to LLVM remarks

Slight improvement of https://github.com/rust-lang/rust/pull/113040. This makes sure that if PGO is used, remarks generated using `-Zremark-dir` will include the `Hotness` attribute.

r? `@tmiasko`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index b167facfb02..7fb4d3227db 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -2332,6 +2332,7 @@ extern "C" {
         remark_passes: *const *const c_char,
         remark_passes_len: usize,
         remark_file: *const c_char,
+        pgo_available: bool,
     );
 
     #[allow(improper_ctypes)]