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(
51
51
cgcx : & CodegenContext < GccCodegenBackend > ,
52
52
dcx : DiagCtxtHandle < ' _ > ,
53
53
) -> Result < LtoData , FatalError > {
54
- // FIXME(bjorn3): Limit LTO exports to these symbols
55
- let _symbols_below_threshold = & cgcx. exported_symbols_for_lto ;
56
-
57
54
let tmp_path = match tempdir ( ) {
58
55
Ok ( tmp_path) => tmp_path,
59
56
Err ( error) => {
Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ impl WriteBackendMethods for GccCodegenBackend {
358
358
359
359
fn run_and_optimize_fat_lto (
360
360
cgcx : & CodegenContext < Self > ,
361
+ // FIXME(bjorn3): Limit LTO exports to these symbols
362
+ _exported_symbols_for_lto : & [ String ] ,
361
363
modules : Vec < FatLtoInput < Self > > ,
362
364
diff_fncs : Vec < AutoDiffItem > ,
363
365
) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
@@ -370,6 +372,8 @@ impl WriteBackendMethods for GccCodegenBackend {
370
372
371
373
fn run_thin_lto (
372
374
cgcx : & CodegenContext < Self > ,
375
+ // FIXME(bjorn3): Limit LTO exports to these symbols
376
+ _exported_symbols_for_lto : & [ String ] ,
373
377
modules : Vec < ( String , Self :: ThinBuffer ) > ,
374
378
cached_modules : Vec < ( SerializedModule < Self :: ModuleBuffer > , WorkProduct ) > ,
375
379
) -> Result < ( Vec < ThinModule < Self > > , Vec < WorkProduct > ) , FatalError > {
You can’t perform that action at this time.
0 commit comments