about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-10-06 15:39:27 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-10-06 15:50:10 +1100
commit4e8faff3a15968970a6810e0af0eafea14f9f7f1 (patch)
tree4a3d9bbfb5f8761f6fbaeabb1dd7cb72cb2075a1 /compiler/rustc_codegen_llvm/src
parent9110d925d0b3e4842376e830f4404a28e1aa2658 (diff)
downloadrust-4e8faff3a15968970a6810e0af0eafea14f9f7f1.tar.gz
rust-4e8faff3a15968970a6810e0af0eafea14f9f7f1.zip
Be consistent about deciding whether to print pass data.
`print_time_passes_entry` unconditionally prints data about a pass. The
most commonly used call site, in `VerboseTimingGuard::drop`, guards it
with a `should_print_passes` test. But there are a couple of other call
sites that don't do that test.

This commit moves the `should_print_passes` test within
`print_time_passes_entry` so that all passes are treated equally.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions