Don't pass local_crate_name to link_binary separately

It is already part of CodegenResults
This commit is contained in:
bjorn3 2021-07-06 17:49:23 +02:00
parent 5aaa953dcc
commit 56ee9864c1
3 changed files with 7 additions and 9 deletions

View file

@ -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(())
}