about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-20 15:02:15 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-20 15:02:15 +0100
commitfb79e44df6310ab449cee6ef82d7672b7e43d4e8 (patch)
treec0eb447f0b32eba4e6d253f88ac1baa1eb494321 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parenteb9e5e711d3eef1998ff24ac2bc57386662652e9 (diff)
downloadrust-fb79e44df6310ab449cee6ef82d7672b7e43d4e8.tar.gz
rust-fb79e44df6310ab449cee6ef82d7672b7e43d4e8.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm_util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs
index 2fa602520dc..79b243f73d1 100644
--- a/compiler/rustc_codegen_llvm/src/llvm_util.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -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