ManagedStatic: remove from DebugCounter
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 4 Jul 2022 10:52:08 +0000 (12:52 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 26 Aug 2022 07:22:11 +0000 (09:22 +0200)
commitb5b6ef1500af29b6aba71330d8aaf82ecccb1f37
tree9539230d72444dae7db802a36a3a433f7e879d62
parentd0546fbea23228419bfd463ce76a9731eab39651
ManagedStatic: remove from DebugCounter

Follow the pattern used in MLIR for the cl::opt instances.

v2:
- make DebugCounter::isCountingEnabled public so that the
  DebugCounterOwner doesn't have to be a nested class. This simplifies
  later changes

v3:
- remove the indirection via DebugCounterOwner::instance()

Differential Revision: https://reviews.llvm.org/D129116
llvm/include/llvm/Support/DebugCounter.h
llvm/lib/Support/DebugCounter.cpp