[all-commits] [llvm/llvm-project] 0629cc: ManagedStatic: remove from DebugCounter

Nicolai Hähnle via All-commits all-commits at lists.llvm.org
Sun Oct 30 12:47:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0629cce2939017a66101f94976a70743cfe0eb6c
      https://github.com/llvm/llvm-project/commit/0629cce2939017a66101f94976a70743cfe0eb6c
  Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
  Date:   2022-10-30 (Sun, 30 Oct 2022)

  Changed paths:
    M llvm/include/llvm/Support/DebugCounter.h
    M llvm/lib/Support/DebugCounter.cpp

  Log Message:
  -----------
  ManagedStatic: remove from DebugCounter

[Re-submit after earlier revert due to a test failure. Commit dce78646f07
("clang-tblgen build: avoid duplicate inclusion of libLLVMSupport")
is believe to address the root cause of the test failure.]

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




More information about the All-commits mailing list