summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-09-05 17:17:26 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-09-09 09:00:50 +1000
commitbbe28cf1d9c52888f2a48324001c6599fc3d2853 (patch)
treeefb06479db3f6a796ca426ccef46bb3a7bc8fd01 /compiler/rustc_codegen_gcc
parentd6c8169c186ab16a3404cd0d0866674018e8a19e (diff)
downloadrust-bbe28cf1d9c52888f2a48324001c6599fc3d2853.tar.gz
rust-bbe28cf1d9c52888f2a48324001c6599fc3d2853.zip
Remove `serialized_bitcode` from `LtoModuleCodegen`.
It's unused.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/src/back/lto.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_gcc/src/back/lto.rs b/compiler/rustc_codegen_gcc/src/back/lto.rs
index 6b2dbbbed67..c2adab7137f 100644
--- a/compiler/rustc_codegen_gcc/src/back/lto.rs
+++ b/compiler/rustc_codegen_gcc/src/back/lto.rs
@@ -272,7 +272,6 @@ fn fat_lto(
             }*/
         }
     };
-    let mut serialized_bitcode = Vec::new();
     {
         info!("using {:?} as a base module", module.name);
 
@@ -317,7 +316,6 @@ fn fat_lto(
                     unimplemented!("from uncompressed file")
                 }
             }
-            serialized_bitcode.push(bc_decoded);
         }
         save_temp_bitcode(cgcx, &module, "lto.input");
 
@@ -337,7 +335,7 @@ fn fat_lto(
     // of now.
     module.module_llvm.temp_dir = Some(tmp_path);
 
-    Ok(LtoModuleCodegen::Fat { module, _serialized_bitcode: serialized_bitcode })
+    Ok(LtoModuleCodegen::Fat(module))
 }
 
 pub struct ModuleBuffer(PathBuf);