File tree Expand file tree Collapse file tree 2 files changed +12
-29
lines changed
src/librustc_codegen_llvm Expand file tree Collapse file tree 2 files changed +12
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -71,9 +71,8 @@ use rustc_codegen_utils::codegen_backend::CodegenBackend;
71
71
mod error_codes;
72
72
73
73
mod back {
74
- mod archive;
74
+ pub mod archive;
75
75
pub mod bytecode;
76
- pub mod link;
77
76
pub mod lto;
78
77
pub mod write;
79
78
}
@@ -327,8 +326,17 @@ impl CodegenBackend for LlvmCodegenBackend {
327
326
// This should produce either a finished executable or library.
328
327
sess. profiler ( |p| p. start_activity ( "link_crate" ) ) ;
329
328
time ( sess, "linking" , || {
330
- back:: link:: link_binary ( sess, & codegen_results,
331
- outputs, & codegen_results. crate_name . as_str ( ) ) ;
329
+ use rustc_codegen_ssa:: back:: link:: link_binary;
330
+ use crate :: back:: archive:: LlvmArchiveBuilder ;
331
+
332
+ let target_cpu = crate :: llvm_util:: target_cpu ( sess) ;
333
+ link_binary :: < LlvmArchiveBuilder < ' _ > > (
334
+ sess,
335
+ & codegen_results,
336
+ outputs,
337
+ & codegen_results. crate_name . as_str ( ) ,
338
+ target_cpu,
339
+ ) ;
332
340
} ) ;
333
341
sess. profiler ( |p| p. end_activity ( "link_crate" ) ) ;
334
342
You can’t perform that action at this time.
0 commit comments