Remove wrapper functions for some unstable options

They are trivial and just forward to the option. Like most other
options, we can just access it directly.
This commit is contained in:
Nilstrieb 2022-12-20 15:02:15 +01:00
parent eb9e5e711d
commit fb79e44df6
8 changed files with 10 additions and 40 deletions

View file

@ -81,10 +81,10 @@ unsafe fn configure_llvm(sess: &Session) {
};
// Set the llvm "program name" to make usage and invalid argument messages more clear.
add("rustc -Cllvm-args=\"...\" with", true);
if sess.time_llvm_passes() {
if sess.opts.unstable_opts.time_llvm_passes {
add("-time-passes", false);
}
if sess.print_llvm_passes() {
if sess.opts.unstable_opts.print_llvm_passes {
add("-debug-pass=Structure", false);
}
if sess.target.generate_arange_section