]> granicus.if.org Git - llvm/commit
Change default TimerGroup singleton to use magic statics
authorErich Keane <erich.keane@intel.com>
Thu, 16 Feb 2017 20:19:49 +0000 (20:19 +0000)
committerErich Keane <erich.keane@intel.com>
Thu, 16 Feb 2017 20:19:49 +0000 (20:19 +0000)
commit24d28213382bbe2f82076d929814bdb8a6b6adf2
tree5d98a162b1e25d02c48b2b5be2793e84ccb51d8a
parentff2120a9ec53979fd4c2e5563716ca0af41e7012
Change default TimerGroup singleton to use magic statics

TimerGroup was showing up on a leak in valigrind, and
used some pretty complex code to implement a singleton.
This patch replaces the implementation with a vastly simpler
one.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295370 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Timer.cpp