Skip to content

Commit ecab766

Browse files
committed
Move exported_symbols_for_lto out of CodegenContext
1 parent df53678 commit ecab766

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/back/lto.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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) => {

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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> {

0 commit comments

Comments
 (0)