HomePhabricator

[Legacy][TimePasses] allow -time-passes reporting into a custom stream

Description

[Legacy][TimePasses] allow -time-passes reporting into a custom stream

As a followup to newpm -time-passes fix (D59366), now adding a similar
functionality to legacy time-passes.

Enhancing llvm::reportAndResetTimings to accept an optional stream
for reporting output. By default it still reports into the stream created
by CreateInfoOutputFile (-info-output-file).

Also fixing to actually reset after printing as declared.

Reviewed By: philip.pfaffe
Differential Revision: https://reviews.llvm.org/D59416

Details

Committed
fedor.sergeevMar 22 2019, 4:11 PM
Reviewer
philip.pfaffe
Differential Revision
D59416: [Legacy][TimePasses] allow -time-passes reporting into a custom stream
Parents
rL356823: Followup for r356820 to fix the bots.
Branches
Unknown
Tags
Unknown