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/lib.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/lib.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/lib.rs | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/compiler/rustc_codegen_ssa/src/lib.rs b/compiler/rustc_codegen_ssa/src/lib.rs index ba44944476b..523c9f2ad1c 100644 --- a/compiler/rustc_codegen_ssa/src/lib.rs +++ b/compiler/rustc_codegen_ssa/src/lib.rs @@ -170,7 +170,6 @@ pub(crate) struct CachedModuleCodegen { #[derive(Copy, Clone, Debug, PartialEq, Encodable, Decodable)] pub enum ModuleKind { Regular, - Metadata, Allocator, } @@ -234,6 +233,7 @@ pub struct CrateInfo { pub windows_subsystem: Option<String>, pub natvis_debugger_visualizers: BTreeSet<DebuggerVisualizerFile>, pub lint_levels: CodegenLintLevels, + pub metadata_symbol: String, } /// Target-specific options that get set in `cfg(...)`. @@ -258,7 +258,6 @@ pub struct TargetConfig { pub struct CodegenResults { pub modules: Vec<CompiledModule>, pub allocator_module: Option<CompiledModule>, - pub metadata_module: Option<CompiledModule>, pub crate_info: CrateInfo, } | 
