File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ impl CodegenBackend for LlvmCodegenBackend {
382
382
383
383
// Run the linker on any artifacts that resulted from the LLVM run.
384
384
// This should produce either a finished executable or library.
385
- link_binary ( sess, & LlvmArchiveBuilderBuilder , & codegen_results, outputs)
385
+ link_binary ( sess, & LlvmArchiveBuilderBuilder , codegen_results, outputs)
386
386
}
387
387
}
388
388
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ pub fn ensure_removed(dcx: DiagCtxtHandle<'_>, path: &Path) {
69
69
pub fn link_binary (
70
70
sess : & Session ,
71
71
archive_builder_builder : & dyn ArchiveBuilderBuilder ,
72
- codegen_results : & CodegenResults ,
72
+ codegen_results : CodegenResults ,
73
73
outputs : & OutputFilenames ,
74
74
) -> Result < ( ) , ErrorGuaranteed > {
75
75
let _timer = sess. timer ( "link_binary" ) ;
@@ -116,7 +116,7 @@ pub fn link_binary(
116
116
link_rlib (
117
117
sess,
118
118
archive_builder_builder,
119
- codegen_results,
119
+ & codegen_results,
120
120
RlibFlavor :: Normal ,
121
121
& path,
122
122
) ?
@@ -126,7 +126,7 @@ pub fn link_binary(
126
126
link_staticlib (
127
127
sess,
128
128
archive_builder_builder,
129
- codegen_results,
129
+ & codegen_results,
130
130
& out_filename,
131
131
& path,
132
132
) ?;
@@ -137,7 +137,7 @@ pub fn link_binary(
137
137
archive_builder_builder,
138
138
crate_type,
139
139
& out_filename,
140
- codegen_results,
140
+ & codegen_results,
141
141
path. as_ref ( ) ,
142
142
) ?;
143
143
}
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ pub trait CodegenBackend {
90
90
codegen_results : CodegenResults ,
91
91
outputs : & OutputFilenames ,
92
92
) -> Result < ( ) , ErrorGuaranteed > {
93
- link_binary ( sess, & ArArchiveBuilderBuilder , & codegen_results, outputs)
93
+ link_binary ( sess, & ArArchiveBuilderBuilder , codegen_results, outputs)
94
94
}
95
95
96
96
/// Returns `true` if this backend can be safely called from multiple threads.
You can’t perform that action at this time.
0 commit comments