File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ fn prepare_lto(
5151 cgcx : & CodegenContext < GccCodegenBackend > ,
5252 dcx : DiagCtxtHandle < ' _ > ,
5353) -> Result < LtoData , FatalError > {
54- // FIXME(bjorn3): Limit LTO exports to these symbols
55- let _symbols_below_threshold = & cgcx. exported_symbols_for_lto ;
56-
5754 let tmp_path = match tempdir ( ) {
5855 Ok ( tmp_path) => tmp_path,
5956 Err ( error) => {
Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ impl WriteBackendMethods for GccCodegenBackend {
358358
359359 fn run_and_optimize_fat_lto (
360360 cgcx : & CodegenContext < Self > ,
361+ // FIXME(bjorn3): Limit LTO exports to these symbols
362+ _exported_symbols_for_lto : & [ String ] ,
361363 modules : Vec < FatLtoInput < Self > > ,
362364 diff_fncs : Vec < AutoDiffItem > ,
363365 ) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
@@ -370,6 +372,8 @@ impl WriteBackendMethods for GccCodegenBackend {
370372
371373 fn run_thin_lto (
372374 cgcx : & CodegenContext < Self > ,
375+ // FIXME(bjorn3): Limit LTO exports to these symbols
376+ _exported_symbols_for_lto : & [ String ] ,
373377 modules : Vec < ( String , Self :: ThinBuffer ) > ,
374378 cached_modules : Vec < ( SerializedModule < Self :: ModuleBuffer > , WorkProduct ) > ,
375379 ) -> Result < ( Vec < ThinModule < Self > > , Vec < WorkProduct > ) , FatalError > {
You can’t perform that action at this time.
0 commit comments