about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-25 22:15:00 +0100
committerGitHub <noreply@github.com>2022-12-25 22:15:00 +0100
commit6689d2df08af58fb876126ad47bb279f3b789dfc (patch)
treed5ad650fb98b52ea2ec6c2e4a3c12ccee8181a77 /compiler/rustc_codegen_ssa/src/back
parent44065e4184de61d9d3b46ae53bcdbc5e8674ed6f (diff)
parentfb79e44df6310ab449cee6ef82d7672b7e43d4e8 (diff)
downloadrust-6689d2df08af58fb876126ad47bb279f3b789dfc.tar.gz
rust-6689d2df08af58fb876126ad47bb279f3b789dfc.zip
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses-for-that, r=cjgillot
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_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/write.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs
index 12fca64968a..1a7de1a184a 100644
--- a/compiler/rustc_codegen_ssa/src/back/write.rs
+++ b/compiler/rustc_codegen_ssa/src/back/write.rs
@@ -1899,7 +1899,7 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
 
         // FIXME: time_llvm_passes support - does this use a global context or
         // something?
-        if sess.codegen_units() == 1 && sess.time_llvm_passes() {
+        if sess.codegen_units() == 1 && sess.opts.unstable_opts.time_llvm_passes {
             self.backend.print_pass_timings()
         }