@@ -2,7 +2,8 @@ use super::command::Command;
22use super :: link:: { self , get_linker, remove} ;
33use super :: linker:: LinkerInfo ;
44use super :: lto:: { self , SerializedModule } ;
5- use super :: symbol_export:: { symbol_name_for_instance_in_crate, ExportedSymbols } ;
5+ use super :: symbol_export:: symbol_name_for_instance_in_crate;
6+
67use crate :: {
78 CachedModuleCodegen , CodegenResults , CompiledModule , CrateInfo , ModuleCodegen , ModuleKind ,
89 RLIB_BYTECODE_EXTENSION ,
@@ -12,6 +13,7 @@ use crate::traits::*;
1213use jobserver:: { Acquired , Client } ;
1314use rustc:: dep_graph:: { WorkProduct , WorkProductFileKind , WorkProductId } ;
1415use rustc:: middle:: cstore:: EncodedMetadata ;
16+ use rustc:: middle:: exported_symbols:: SymbolExportLevel ;
1517use rustc:: session:: config:: {
1618 self , Lto , OutputFilenames , OutputType , Passes , Sanitizer , SwitchWithOptPath ,
1719} ;
@@ -205,6 +207,8 @@ impl<B: WriteBackendMethods> Clone for TargetMachineFactory<B> {
205207 }
206208}
207209
210+ pub type ExportedSymbols = FxHashMap < CrateNum , Arc < Vec < ( String , SymbolExportLevel ) > > > ;
211+
208212/// Additional resources used by optimize_and_codegen (not module specific)
209213#[ derive( Clone ) ]
210214pub struct CodegenContext < B : WriteBackendMethods > {
0 commit comments