diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-01 17:29:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-01 17:29:48 +0200 |
| commit | 9f9529acd54f82c7bf6008cd486513414a650a5f (patch) | |
| tree | ab7d767b9fb36120607388ae1cfb607303633bbb /src/librustc_codegen_ssa | |
| parent | eab3eb38df8dca99110b6149b3a15deeb4ef0413 (diff) | |
| parent | e842f570d9a7f2e77e4b49b7a7e0f329de2b5e18 (diff) | |
| download | rust-9f9529acd54f82c7bf6008cd486513414a650a5f.tar.gz rust-9f9529acd54f82c7bf6008cd486513414a650a5f.zip | |
Rollup merge of #58507 - Zoxc:time-extended, r=michaelwoerister
Add a -Z time option which prints only passes which runs once This ensures `-Z time-passes` fits on my screen =P r? @michaelwoerister
Diffstat (limited to 'src/librustc_codegen_ssa')
| -rw-r--r-- | src/librustc_codegen_ssa/back/write.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_ssa/back/write.rs b/src/librustc_codegen_ssa/back/write.rs index 55b7855ac08..fa8c4177eaf 100644 --- a/src/librustc_codegen_ssa/back/write.rs +++ b/src/librustc_codegen_ssa/back/write.rs @@ -125,7 +125,7 @@ impl ModuleConfig { self.verify_llvm_ir = sess.verify_llvm_ir(); self.no_prepopulate_passes = sess.opts.cg.no_prepopulate_passes; self.no_builtins = no_builtins || sess.target.target.options.no_builtins; - self.time_passes = sess.time_passes(); + self.time_passes = sess.time_extended(); self.inline_threshold = sess.opts.cg.inline_threshold; self.obj_is_bitcode = sess.target.target.options.obj_is_bitcode || sess.opts.cg.linker_plugin_lto.enabled(); @@ -1091,7 +1091,7 @@ fn start_executing_work<B: ExtraBackendMethods>( fewer_names: sess.fewer_names(), save_temps: sess.opts.cg.save_temps, opts: Arc::new(sess.opts.clone()), - time_passes: sess.time_passes(), + time_passes: sess.time_extended(), profiler: sess.self_profiling.clone(), exported_symbols, plugin_passes: sess.plugin_llvm_passes.borrow().clone(), |
