From 56ee9864c187a2a754a44be7d6ac529dda9058fc Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Tue, 6 Jul 2021 17:49:23 +0200 Subject: Don't pass local_crate_name to link_binary separately It is already part of CodegenResults --- compiler/rustc_codegen_llvm/src/lib.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'compiler/rustc_codegen_llvm/src') 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::>( - sess, - &codegen_results, - outputs, - &codegen_results.crate_info.local_crate_name.as_str(), - ); + link_binary::>(sess, &codegen_results, outputs); Ok(()) } -- cgit 1.4.1-3-g733a5