diff options
| author | bors <bors@rust-lang.org> | 2025-09-07 20:27:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-07 20:27:43 +0000 |
| commit | 12eb345e5593a10e61b4aef766076c8bd552fea6 (patch) | |
| tree | 6d0b3872c9b314438868f0ee31bf22b8ff2be7ee /compiler/rustc_codegen_gcc | |
| parent | 23718020b12d7e5a54f82a19910e8356ee719667 (diff) | |
| parent | 36557d1046da672559bda949afa8256add67058b (diff) | |
| download | rust-12eb345e5593a10e61b4aef766076c8bd552fea6.tar.gz rust-12eb345e5593a10e61b4aef766076c8bd552fea6.zip | |
Auto merge of #146304 - matthiaskrgr:rollup-69hs07h, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - rust-lang/rust#146170 (fix: offline rustdoc html missing favicon) - rust-lang/rust#146209 (Misc LTO cleanups) - rust-lang/rust#146269 (feat(std): emulate flock for solaris via fcntl) - rust-lang/rust#146297 (Introduce PlaceContext::may_observe_address.) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/back/lto.rs | 11 | ||||
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/lib.rs | 7 |
2 files changed, 4 insertions, 14 deletions
diff --git a/compiler/rustc_codegen_gcc/src/back/lto.rs b/compiler/rustc_codegen_gcc/src/back/lto.rs index 9d8ce2383f2..d29bba2570f 100644 --- a/compiler/rustc_codegen_gcc/src/back/lto.rs +++ b/compiler/rustc_codegen_gcc/src/back/lto.rs @@ -305,12 +305,9 @@ pub(crate) fn run_thin( ) } -pub(crate) fn prepare_thin( - module: ModuleCodegen<GccContext>, - _emit_summary: bool, -) -> (String, ThinBuffer) { +pub(crate) fn prepare_thin(module: ModuleCodegen<GccContext>) -> (String, ThinBuffer) { let name = module.name; - //let buffer = ThinBuffer::new(module.module_llvm.context, true, emit_summary); + //let buffer = ThinBuffer::new(module.module_llvm.context, true); let buffer = ThinBuffer::new(&module.module_llvm.context); (name, buffer) } @@ -650,10 +647,6 @@ impl ThinBufferMethods for ThinBuffer { fn data(&self) -> &[u8] { &[] } - - fn thin_link_data(&self) -> &[u8] { - unimplemented!(); - } } pub struct ThinData; //(Arc<TempDir>); diff --git a/compiler/rustc_codegen_gcc/src/lib.rs b/compiler/rustc_codegen_gcc/src/lib.rs index 2d7df79ba95..f76f933cad4 100644 --- a/compiler/rustc_codegen_gcc/src/lib.rs +++ b/compiler/rustc_codegen_gcc/src/lib.rs @@ -408,11 +408,8 @@ impl WriteBackendMethods for GccCodegenBackend { back::write::codegen(cgcx, module, config) } - fn prepare_thin( - module: ModuleCodegen<Self::Module>, - emit_summary: bool, - ) -> (String, Self::ThinBuffer) { - back::lto::prepare_thin(module, emit_summary) + fn prepare_thin(module: ModuleCodegen<Self::Module>) -> (String, Self::ThinBuffer) { + back::lto::prepare_thin(module) } fn serialize_module(_module: ModuleCodegen<Self::Module>) -> (String, Self::ModuleBuffer) { |
