Remove cg_llvm/back/link.rs
This commit is contained in:
parent
93a3b414e3
commit
dd4566f511
2 changed files with 12 additions and 29 deletions
|
@ -71,9 +71,8 @@ use rustc_codegen_utils::codegen_backend::CodegenBackend;
|
|||
mod error_codes;
|
||||
|
||||
mod back {
|
||||
mod archive;
|
||||
pub mod archive;
|
||||
pub mod bytecode;
|
||||
pub mod link;
|
||||
pub mod lto;
|
||||
pub mod write;
|
||||
}
|
||||
|
@ -327,8 +326,17 @@ impl CodegenBackend for LlvmCodegenBackend {
|
|||
// This should produce either a finished executable or library.
|
||||
sess.profiler(|p| p.start_activity("link_crate"));
|
||||
time(sess, "linking", || {
|
||||
back::link::link_binary(sess, &codegen_results,
|
||||
outputs, &codegen_results.crate_name.as_str());
|
||||
use rustc_codegen_ssa::back::link::link_binary;
|
||||
use crate::back::archive::LlvmArchiveBuilder;
|
||||
|
||||
let target_cpu = crate::llvm_util::target_cpu(sess);
|
||||
link_binary::<LlvmArchiveBuilder<'_>>(
|
||||
sess,
|
||||
&codegen_results,
|
||||
outputs,
|
||||
&codegen_results.crate_name.as_str(),
|
||||
target_cpu,
|
||||
);
|
||||
});
|
||||
sess.profiler(|p| p.end_activity("link_crate"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue