about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/tests.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-25 00:11:02 +0200
committerGitHub <noreply@github.com>2022-04-25 00:11:02 +0200
commit433f1f425ee100adf2b8c454170bdee31df56670 (patch)
tree59966c93769486757fb4cccfbfc9167cacd894bd /compiler/rustc_interface/src/tests.rs
parent50294f69cd48e4c9b3ba080632263e2cbb7eb5af (diff)
parent6dc0bcc5db00524af73eb7dd2f6e24f38736f1aa (diff)
downloadrust-433f1f425ee100adf2b8c454170bdee31df56670.tar.gz
rust-433f1f425ee100adf2b8c454170bdee31df56670.zip
Rollup merge of #96215 - nikic:legacy-pm-removal, r=nagisa
Drop support for legacy PM with LLVM 15

LLVM 15 already removes some of the legacy PM APIs we're using. This patch forces use of NewPM with LLVM 15 (with `-Z new-llvm-pass-manager=no` throwing a warning) and stubs out various FFI methods with a report_fatal_error on LLVM 15.

For LLVMPassManagerBuilderPopulateLTOPassManager() I went with adding our own wrapper, as the alternative would be to muck about with weak symbols, which seems to be non-trivial as far as cross-platform support is concerned (std has `weak!` for this purpose, but only as an internal utility.)

Fixes #96072.
Fixes #96362.
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
0 files changed, 0 insertions, 0 deletions