@@ -89,15 +89,15 @@ use rustc_trans_utils::trans_crate::TransCrate;
89
89
90
90
mod diagnostics;
91
91
92
- pub ( crate ) mod back {
92
+ mod back {
93
+ pub use rustc_trans_utils:: symbol_names;
93
94
mod archive;
94
95
pub mod bytecode;
95
96
mod command;
96
- pub ( crate ) mod linker;
97
+ pub mod linker;
97
98
pub mod link;
98
99
mod lto;
99
- pub ( crate ) mod symbol_export;
100
- pub ( crate ) use rustc_trans_utils:: symbol_names;
100
+ pub mod symbol_export;
101
101
pub mod write;
102
102
mod rpath;
103
103
}
@@ -258,8 +258,8 @@ pub struct ModuleTranslation {
258
258
/// as the crate name and disambiguator.
259
259
name : String ,
260
260
llmod_id : String ,
261
- pub source : ModuleSource ,
262
- pub kind : ModuleKind ,
261
+ source : ModuleSource ,
262
+ kind : ModuleKind ,
263
263
}
264
264
265
265
#[ derive( Copy , Clone , Debug , PartialEq ) ]
@@ -270,14 +270,14 @@ pub enum ModuleKind {
270
270
}
271
271
272
272
impl ModuleTranslation {
273
- pub fn llvm ( & self ) -> Option < & ModuleLlvm > {
273
+ fn llvm ( & self ) -> Option < & ModuleLlvm > {
274
274
match self . source {
275
275
ModuleSource :: Translated ( ref llvm) => Some ( llvm) ,
276
276
ModuleSource :: Preexisting ( _) => None ,
277
277
}
278
278
}
279
279
280
- pub fn into_compiled_module ( self ,
280
+ fn into_compiled_module ( self ,
281
281
emit_obj : bool ,
282
282
emit_bc : bool ,
283
283
emit_bc_compressed : bool ,
@@ -317,16 +317,16 @@ impl ModuleTranslation {
317
317
318
318
#[ derive( Debug ) ]
319
319
pub struct CompiledModule {
320
- pub name : String ,
321
- pub llmod_id : String ,
322
- pub kind : ModuleKind ,
323
- pub pre_existing : bool ,
324
- pub object : Option < PathBuf > ,
325
- pub bytecode : Option < PathBuf > ,
326
- pub bytecode_compressed : Option < PathBuf > ,
320
+ name : String ,
321
+ llmod_id : String ,
322
+ kind : ModuleKind ,
323
+ pre_existing : bool ,
324
+ object : Option < PathBuf > ,
325
+ bytecode : Option < PathBuf > ,
326
+ bytecode_compressed : Option < PathBuf > ,
327
327
}
328
328
329
- pub enum ModuleSource {
329
+ enum ModuleSource {
330
330
/// Copy the `.o` files or whatever from the incr. comp. directory.
331
331
Preexisting ( WorkProduct ) ,
332
332
@@ -337,7 +337,7 @@ pub enum ModuleSource {
337
337
#[ derive( Debug ) ]
338
338
pub struct ModuleLlvm {
339
339
llcx : llvm:: ContextRef ,
340
- pub llmod : llvm:: ModuleRef ,
340
+ llmod : llvm:: ModuleRef ,
341
341
tm : llvm:: TargetMachineRef ,
342
342
}
343
343
@@ -355,12 +355,12 @@ impl Drop for ModuleLlvm {
355
355
}
356
356
357
357
pub struct CrateTranslation {
358
- pub crate_name : Symbol ,
359
- pub modules : Vec < CompiledModule > ,
358
+ crate_name : Symbol ,
359
+ modules : Vec < CompiledModule > ,
360
360
allocator_module : Option < CompiledModule > ,
361
361
metadata_module : CompiledModule ,
362
- pub link : rustc:: middle:: cstore:: LinkMeta ,
363
- pub metadata : rustc:: middle:: cstore:: EncodedMetadata ,
362
+ link : rustc:: middle:: cstore:: LinkMeta ,
363
+ metadata : rustc:: middle:: cstore:: EncodedMetadata ,
364
364
windows_subsystem : Option < String > ,
365
365
linker_info : back:: linker:: LinkerInfo ,
366
366
crate_info : CrateInfo ,
0 commit comments