|
1 | 1 | use super::link::{self, ensure_removed}; |
2 | | -use super::linker::LinkerInfo; |
3 | 2 | use super::lto::{self, SerializedModule}; |
4 | 3 | use super::symbol_export::symbol_name_for_instance_in_crate; |
5 | 4 |
|
@@ -430,8 +429,7 @@ pub fn start_async_codegen<B: ExtraBackendMethods>( |
430 | 429 | let no_builtins = tcx.sess.contains_name(crate_attrs, sym::no_builtins); |
431 | 430 | let is_compiler_builtins = tcx.sess.contains_name(crate_attrs, sym::compiler_builtins); |
432 | 431 |
|
433 | | - let linker_info = LinkerInfo::new(tcx, target_cpu); |
434 | | - let crate_info = CrateInfo::new(tcx); |
| 432 | + let crate_info = CrateInfo::new(tcx, target_cpu); |
435 | 433 |
|
436 | 434 | let regular_config = |
437 | 435 | ModuleConfig::new(ModuleKind::Regular, sess, no_builtins, is_compiler_builtins); |
@@ -461,7 +459,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>( |
461 | 459 | OngoingCodegen { |
462 | 460 | backend, |
463 | 461 | metadata, |
464 | | - linker_info, |
465 | 462 | crate_info, |
466 | 463 |
|
467 | 464 | coordinator_send, |
@@ -1799,7 +1796,6 @@ impl SharedEmitterMain { |
1799 | 1796 | pub struct OngoingCodegen<B: ExtraBackendMethods> { |
1800 | 1797 | pub backend: B, |
1801 | 1798 | pub metadata: EncodedMetadata, |
1802 | | - pub linker_info: LinkerInfo, |
1803 | 1799 | pub crate_info: CrateInfo, |
1804 | 1800 | pub coordinator_send: Sender<Box<dyn Any + Send>>, |
1805 | 1801 | pub codegen_worker_receive: Receiver<Message<B>>, |
@@ -1842,7 +1838,6 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> { |
1842 | 1838 | ( |
1843 | 1839 | CodegenResults { |
1844 | 1840 | metadata: self.metadata, |
1845 | | - linker_info: self.linker_info, |
1846 | 1841 | crate_info: self.crate_info, |
1847 | 1842 |
|
1848 | 1843 | modules: compiled_modules.modules, |
|
0 commit comments