diff options
| author | Nikita Popov <npopov@redhat.com> | 2022-04-19 15:02:43 +0200 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2022-04-20 09:25:47 +0200 |
| commit | 25286dda2bded340cb43bea8d63fca3ebfed412b (patch) | |
| tree | 0397e5d50d795bf87620f645436ff8951dbdf16f /compiler/rustc_codegen_llvm/src/back/write.rs | |
| parent | 57717eb8adf63e00ee51b722a81a6676b74f2678 (diff) | |
| download | rust-25286dda2bded340cb43bea8d63fca3ebfed412b.tar.gz rust-25286dda2bded340cb43bea8d63fca3ebfed412b.zip | |
Drop support for -Znew-llvm-pass-manager=no with LLVM 15
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index 7ef3b12cd08..43e49bbeca9 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -523,6 +523,12 @@ pub(crate) unsafe fn optimize( let module_name = module.name.clone(); let module_name = Some(&module_name[..]); + if let Some(false) = config.new_llvm_pass_manager && llvm_util::get_version() >= (15, 0, 0) { + diag_handler.warn( + "ignoring `-Z new-llvm-pass-manager=no`, which is no longer supported with LLVM 15", + ); + } + if config.emit_no_opt_bc { let out = cgcx.output_filenames.temp_path_ext("no-opt.bc", module_name); let out = path_to_c_string(&out); |
