Skip to content

Commit df53678

Browse files
committed
Merge exported_symbols computation into exported_symbols_for_lto
And move exported_symbols_for_lto call from backends to cg_ssa.
1 parent 803ada7 commit df53678

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/back/lto.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ use std::sync::Arc;
2424

2525
use gccjit::{Context, OutputKind};
2626
use object::read::archive::ArchiveFile;
27-
use rustc_codegen_ssa::back::lto::{
28-
SerializedModule, ThinModule, ThinShared, exported_symbols_for_lto,
29-
};
27+
use rustc_codegen_ssa::back::lto::{SerializedModule, ThinModule, ThinShared};
3028
use rustc_codegen_ssa::back::write::{CodegenContext, FatLtoInput};
3129
use rustc_codegen_ssa::traits::*;
3230
use rustc_codegen_ssa::{ModuleCodegen, ModuleKind, looks_like_rust_object_file};
@@ -54,7 +52,7 @@ fn prepare_lto(
5452
dcx: DiagCtxtHandle<'_>,
5553
) -> Result<LtoData, FatalError> {
5654
// FIXME(bjorn3): Limit LTO exports to these symbols
57-
let _symbols_below_threshold = exported_symbols_for_lto(cgcx, dcx)?;
55+
let _symbols_below_threshold = &cgcx.exported_symbols_for_lto;
5856

5957
let tmp_path = match tempdir() {
6058
Ok(tmp_path) => tmp_path,

0 commit comments

Comments
 (0)