[PATCH] D43901: Make STATISTIC() values available programmatically

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 2 10:37:01 PST 2018


dsanders updated this revision to Diff 136796.
dsanders added a comment.

Fix a race between GetStatistics() and addStatistic()
Documented caveats that are the callers responsibility to handle if it matters to them.


Repository:
  rL LLVM

https://reviews.llvm.org/D43901

Files:
  cmake/modules/HandleLLVMOptions.cmake
  include/llvm/ADT/Statistic.h
  include/llvm/ADT/StatisticInfo.h
  include/llvm/Config/config.h.cmake
  lib/Support/Statistic.cpp
  unittests/ADT/CMakeLists.txt
  unittests/ADT/StatisticTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43901.136796.patch
Type: text/x-patch
Size: 9093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180302/22e768b6/attachment.bin>


More information about the llvm-commits mailing list