Skip to content

Commit

Permalink
Rollup merge of rust-lang#129981 - nnethercote:rm-serialize_bitcode, …
Browse files Browse the repository at this point in the history
…r=antoyo,tmiasko

Remove `serialized_bitcode` from `LtoModuleCodegen`.

It's unused.

r? ``@bjorn3``
  • Loading branch information
workingjubilee authored Sep 10, 2024
2 parents 37c29b8 + 72d31e9 commit 377e810
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/back/lto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ fn fat_lto(
}*/
}
};
let mut serialized_bitcode = Vec::new();
{
info!("using {:?} as a base module", module.name);

Expand Down Expand Up @@ -317,7 +316,6 @@ fn fat_lto(
unimplemented!("from uncompressed file")
}
}
serialized_bitcode.push(bc_decoded);
}
save_temp_bitcode(cgcx, &module, "lto.input");

Expand All @@ -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);
Expand Down

0 comments on commit 377e810

Please sign in to comment.