about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-09-06 15:21:16 +0000
committerbors <bors@rust-lang.org>2025-09-06 15:21:16 +0000
commitbea625f3275e3c897dc965ed97a1d19ef7831f01 (patch)
treef32cdc8fb33ca70d76fade0ba3a5af10a2c7d6bf /compiler/rustc_codegen_ssa/src/lib.rs
parent6d5caf3a4a358c80f09ba51d71db0dbc41381992 (diff)
parent2cf94b92ca852924ad90943a0c469f01742216a6 (diff)
downloadrust-bea625f3275e3c897dc965ed97a1d19ef7831f01.tar.gz
rust-bea625f3275e3c897dc965ed97a1d19ef7831f01.zip
Auto merge of #146232 - bjorn3:lto_allocator_shim, r=lqd
Make the allocator shim participate in LTO again

This is likely the cause of the perf regression in https://github.com/rust-lang/rust/pull/145955. It also caused some functional regressions.

Fixes https://github.com/rust-lang/rust/issues/146235
Fixes https://github.com/rust-lang/rust/issues/146239
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/lib.rs')
-rw-r--r--compiler/rustc_codegen_ssa/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/lib.rs b/compiler/rustc_codegen_ssa/src/lib.rs
index 23146661f27..baba8f9ca3e 100644
--- a/compiler/rustc_codegen_ssa/src/lib.rs
+++ b/compiler/rustc_codegen_ssa/src/lib.rs
@@ -120,6 +120,7 @@ impl<M> ModuleCodegen<M> {
 
         CompiledModule {
             name: self.name,
+            kind: self.kind,
             object,
             dwarf_object,
             bytecode,
@@ -133,6 +134,7 @@ impl<M> ModuleCodegen<M> {
 #[derive(Debug, Encodable, Decodable)]
 pub struct CompiledModule {
     pub name: String,
+    pub kind: ModuleKind,
     pub object: Option<PathBuf>,
     pub dwarf_object: Option<PathBuf>,
     pub bytecode: Option<PathBuf>,