diff options
| author | Axel Cohen <axel.cohen@eshard.com> | 2021-11-24 11:43:40 +0100 |
|---|---|---|
| committer | Axel Cohen <axel.cohen@eshard.com> | 2021-12-13 10:41:43 +0100 |
| commit | c4f29fa0ed738b52e7d8ef372c2d09300755dfef (patch) | |
| tree | 70209b622c152b56c44064255abe29d85a46c2cd /compiler/rustc_codegen_llvm/src/back | |
| parent | 97cf461b8f4c0ed0de8fdc1c441b904ddb8b3194 (diff) | |
| download | rust-c4f29fa0ed738b52e7d8ef372c2d09300755dfef.tar.gz rust-c4f29fa0ed738b52e7d8ef372c2d09300755dfef.zip | |
Use the existing llvm-plugins option for both legacy and new pm registration
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index a28fca3e700..146c0996b8c 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -470,7 +470,7 @@ pub(crate) unsafe fn optimize_with_new_llvm_pass_manager( let extra_passes = config.passes.join(","); - let pass_plugins = config.pass_plugins.join(" "); + let llvm_plugins = config.llvm_plugins.join(","); // FIXME: NewPM doesn't provide a facility to pass custom InlineParams. // We would have to add upstream support for this first, before we can support @@ -501,8 +501,8 @@ pub(crate) unsafe fn optimize_with_new_llvm_pass_manager( selfprofile_after_pass_callback, extra_passes.as_ptr().cast(), extra_passes.len(), - pass_plugins.as_ptr().cast(), - pass_plugins.len(), + llvm_plugins.as_ptr().cast(), + llvm_plugins.len(), ); result.into_result().map_err(|()| llvm_err(diag_handler, "failed to run LLVM passes")) } |
