about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
diff options
context:
space:
mode:
authorDianQK <dianqk@dianqk.net>2024-11-17 14:21:23 +0800
committerDianQK <dianqk@dianqk.net>2025-02-23 21:23:36 +0800
commit1a99ca8da98061a52b9b429d1a859b1e1475cae9 (patch)
tree6f1526de049f85312b54d6b24c78ebb303665d31 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs
parent1805b3348341e0918912ab61cb1dffad41648d23 (diff)
downloadrust-1a99ca8da98061a52b9b429d1a859b1e1475cae9.tar.gz
rust-1a99ca8da98061a52b9b429d1a859b1e1475cae9.zip
The embedded bitcode should always be prepared for LTO/ThinLTO
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index 3b0187b9d37..ac91a416edc 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -2421,7 +2421,9 @@ unsafe extern "C" {
         NoPrepopulatePasses: bool,
         VerifyIR: bool,
         LintIR: bool,
-        UseThinLTOBuffers: bool,
+        ThinLTOBuffer: Option<&mut *mut ThinLTOBuffer>,
+        EmitThinLTO: bool,
+        EmitThinLTOSummary: bool,
         MergeFunctions: bool,
         UnrollLoops: bool,
         SLPVectorize: bool,