diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-07-06 15:57:20 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-07-21 07:58:44 +0000 |
| commit | df5367810bb1af76f82f9dff4a727bee8e54f3bc (patch) | |
| tree | 19d409ef48e6f4f8ec01d51db50cdfa24670bbe4 | |
| parent | 803ada77a5104911ca972926610d2d4b9f3f511e (diff) | |
| download | rust-df5367810bb1af76f82f9dff4a727bee8e54f3bc.tar.gz rust-df5367810bb1af76f82f9dff4a727bee8e54f3bc.zip | |
Merge exported_symbols computation into exported_symbols_for_lto
And move exported_symbols_for_lto call from backends to cg_ssa.
| -rw-r--r-- | src/back/lto.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/back/lto.rs b/src/back/lto.rs index e075aa8480a..f957bb7f101 100644 --- a/src/back/lto.rs +++ b/src/back/lto.rs @@ -24,9 +24,7 @@ use std::sync::Arc; use gccjit::{Context, OutputKind}; use object::read::archive::ArchiveFile; -use rustc_codegen_ssa::back::lto::{ - SerializedModule, ThinModule, ThinShared, exported_symbols_for_lto, -}; +use rustc_codegen_ssa::back::lto::{SerializedModule, ThinModule, ThinShared}; use rustc_codegen_ssa::back::write::{CodegenContext, FatLtoInput}; use rustc_codegen_ssa::traits::*; use rustc_codegen_ssa::{ModuleCodegen, ModuleKind, looks_like_rust_object_file}; @@ -54,7 +52,7 @@ fn prepare_lto( dcx: DiagCtxtHandle<'_>, ) -> Result<LtoData, FatalError> { // FIXME(bjorn3): Limit LTO exports to these symbols - let _symbols_below_threshold = exported_symbols_for_lto(cgcx, dcx)?; + let _symbols_below_threshold = &cgcx.exported_symbols_for_lto; let tmp_path = match tempdir() { Ok(tmp_path) => tmp_path, |
