@@ -41,18 +41,14 @@ pub struct ThinShared<B: WriteBackendMethods> {
4141}
4242
4343pub enum LtoModuleCodegen < B : WriteBackendMethods > {
44- Fat {
45- module : ModuleCodegen < B :: Module > ,
46- _serialized_bitcode : Vec < SerializedModule < B :: ModuleBuffer > > ,
47- } ,
48-
44+ Fat ( ModuleCodegen < B :: Module > ) ,
4945 Thin ( ThinModule < B > ) ,
5046}
5147
5248impl < B : WriteBackendMethods > LtoModuleCodegen < B > {
5349 pub fn name ( & self ) -> & str {
5450 match * self {
55- LtoModuleCodegen :: Fat { .. } => "everything" ,
51+ LtoModuleCodegen :: Fat ( _ ) => "everything" ,
5652 LtoModuleCodegen :: Thin ( ref m) => m. name ( ) ,
5753 }
5854 }
@@ -68,7 +64,7 @@ impl<B: WriteBackendMethods> LtoModuleCodegen<B> {
6864 cgcx : & CodegenContext < B > ,
6965 ) -> Result < ModuleCodegen < B :: Module > , FatalError > {
7066 match self {
71- LtoModuleCodegen :: Fat { mut module, .. } => {
67+ LtoModuleCodegen :: Fat ( mut module) => {
7268 B :: optimize_fat ( cgcx, & mut module) ?;
7369 Ok ( module)
7470 }
@@ -81,7 +77,7 @@ impl<B: WriteBackendMethods> LtoModuleCodegen<B> {
8177 pub fn cost ( & self ) -> u64 {
8278 match * self {
8379 // Only one module with fat LTO, so the cost doesn't matter.
84- LtoModuleCodegen :: Fat { .. } => 0 ,
80+ LtoModuleCodegen :: Fat ( _ ) => 0 ,
8581 LtoModuleCodegen :: Thin ( ref m) => m. cost ( ) ,
8682 }
8783 }
0 commit comments