]> granicus.if.org Git - clang/commit
[Timers] Fix printing some `-ftime-report` sections twice. Fixes PR40328.
authorVolodymyr Sapsai <vsapsai@apple.com>
Wed, 18 Sep 2019 00:05:45 +0000 (00:05 +0000)
committerVolodymyr Sapsai <vsapsai@apple.com>
Wed, 18 Sep 2019 00:05:45 +0000 (00:05 +0000)
commit67a539da85af8053e98e47da1d43d3a7580ce7bd
tree5f0fd45acb08a5406c02120bdcac18e035b75a78
parent197c3feeae28088b68697adc29ccc1b32eb161a2
[Timers] Fix printing some `-ftime-report` sections twice. Fixes PR40328.

Starting from r324788 timer groups aren't cleared automatically when
printed out. As a result some timer groups were printed one more time.
For example, "Pass execution timing report" was printed again in
`ManagedStatic<PassTimingInfo>` destructor, "DWARF Emission" in
`ManagedStatic<Name2PairMap> NamedGroupedTimers` destructor.

Fix by clearing timer groups manually.

Reviewers: thegameg, george.karpenkov

Reviewed By: thegameg

Subscribers: aprantl, jkorous, dexonsmith, ributzka, aras-p, cfe-commits

Differential Revision: https://reviews.llvm.org/D67683

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372191 91177308-0d34-0410-b5e6-96231b3b80d8
tools/driver/cc1_main.cpp
tools/driver/cc1as_main.cpp
tools/driver/driver.cpp