about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/lib.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-07-06 17:49:23 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-07-06 17:49:23 +0200
commit56ee9864c187a2a754a44be7d6ac529dda9058fc (patch)
tree20554aeb81efee07eeadb1da3dd9e0b35bc56eeb /compiler/rustc_codegen_llvm/src/lib.rs
parent5aaa953dcc377ce9c9a01fba0f54d097d029e7fb (diff)
downloadrust-56ee9864c187a2a754a44be7d6ac529dda9058fc.tar.gz
rust-56ee9864c187a2a754a44be7d6ac529dda9058fc.zip
Don't pass local_crate_name to link_binary separately
It is already part of CodegenResults
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/lib.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/rustc_codegen_llvm/src/lib.rs b/compiler/rustc_codegen_llvm/src/lib.rs
index fc890f23853..26fd1cfbcd0 100644
--- a/compiler/rustc_codegen_llvm/src/lib.rs
+++ b/compiler/rustc_codegen_llvm/src/lib.rs
@@ -292,12 +292,7 @@ impl CodegenBackend for LlvmCodegenBackend {
 
         // Run the linker on any artifacts that resulted from the LLVM run.
         // This should produce either a finished executable or library.
-        link_binary::<LlvmArchiveBuilder<'_>>(
-            sess,
-            &codegen_results,
-            outputs,
-            &codegen_results.crate_info.local_crate_name.as_str(),
-        );
+        link_binary::<LlvmArchiveBuilder<'_>>(sess, &codegen_results, outputs);
 
         Ok(())
     }