Skip to content

Commit 758a7da

Browse files
committed
Rename run_lto_pass_manager to optimize_fat and remove thin parameter
1 parent 63e9911 commit 758a7da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ impl WriteBackendMethods for GccCodegenBackend {
229229
Ok(())
230230
}
231231

232+
fn optimize_fat(_cgcx: &CodegenContext<Self>, _module: &ModuleCodegen<Self::Module>, _config: &ModuleConfig) -> Result<(), FatalError> {
233+
// TODO(antoyo)
234+
Ok(())
235+
}
236+
232237
unsafe fn optimize_thin(_cgcx: &CodegenContext<Self>, _thin: &mut ThinModule<Self>) -> Result<ModuleCodegen<Self::Module>, FatalError> {
233238
unimplemented!();
234239
}
@@ -245,11 +250,6 @@ impl WriteBackendMethods for GccCodegenBackend {
245250
unimplemented!();
246251
}
247252

248-
fn run_lto_pass_manager(_cgcx: &CodegenContext<Self>, _module: &ModuleCodegen<Self::Module>, _config: &ModuleConfig, _thin: bool) -> Result<(), FatalError> {
249-
// TODO(antoyo)
250-
Ok(())
251-
}
252-
253253
fn run_link(cgcx: &CodegenContext<Self>, diag_handler: &Handler, modules: Vec<ModuleCodegen<Self::Module>>) -> Result<ModuleCodegen<Self::Module>, FatalError> {
254254
back::write::link(cgcx, diag_handler, modules)
255255
}

0 commit comments

Comments
 (0)