diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-05-30 12:51:15 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-06-03 10:04:34 +0000 |
| commit | 0bd7aa1116c42a96d1c692065ae500a3d2d75484 (patch) | |
| tree | 441b8746a5920f889001256c7d92fd197911ec1e /compiler/rustc_codegen_ssa/src/traits/backend.rs | |
| parent | badabab01f15f156dbb6ce39df4a339006fbfae1 (diff) | |
| download | rust-0bd7aa1116c42a96d1c692065ae500a3d2d75484.tar.gz rust-0bd7aa1116c42a96d1c692065ae500a3d2d75484.zip | |
Move metadata object generation for dylibs to the linker code
This deduplicates some code between codegen backends and may in the future allow adding extra metadata that is only known at link time.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/traits/backend.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/traits/backend.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/backend.rs b/compiler/rustc_codegen_ssa/src/traits/backend.rs index 420290f5a39..29ec7eb1da3 100644 --- a/compiler/rustc_codegen_ssa/src/traits/backend.rs +++ b/compiler/rustc_codegen_ssa/src/traits/backend.rs @@ -74,11 +74,7 @@ pub trait CodegenBackend { fn provide(&self, _providers: &mut Providers) {} - fn codegen_crate<'tcx>( - &self, - tcx: TyCtxt<'tcx>, - metadata: Option<&EncodedMetadata>, - ) -> Box<dyn Any>; + fn codegen_crate<'tcx>(&self, tcx: TyCtxt<'tcx>) -> Box<dyn Any>; /// This is called on the returned `Box<dyn Any>` from [`codegen_crate`](Self::codegen_crate) /// |
