Reduce output spam
This commit is contained in:
@@ -361,12 +361,12 @@ impl CodegenBackend for LlvmCodegenBackend {
|
||||
.expect("Expected LlvmCodegenBackend's OngoingCodegen, found Box<Any>")
|
||||
.join(sess);
|
||||
|
||||
sess.time("llvm_dump_timing_file", || {
|
||||
if sess.opts.unstable_opts.llvm_time_trace {
|
||||
if sess.opts.unstable_opts.llvm_time_trace {
|
||||
sess.time("llvm_dump_timing_file", || {
|
||||
let file_name = outputs.with_extension("llvm_timings.json");
|
||||
llvm_util::time_trace_profiler_finish(&file_name);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Ok((codegen_results, work_products))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user