[llvm] r327015 - Fix unused function warning in StatisticTest.cpp
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 8 07:52:46 PST 2018
Author: dsanders
Date: Thu Mar 8 07:52:45 2018
New Revision: 327015
URL: http://llvm.org/viewvc/llvm-project?rev=327015&view=rev
Log:
Fix unused function warning in StatisticTest.cpp
Modified:
llvm/trunk/unittests/ADT/StatisticTest.cpp
Modified: llvm/trunk/unittests/ADT/StatisticTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/StatisticTest.cpp?rev=327015&r1=327014&r2=327015&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/StatisticTest.cpp (original)
+++ llvm/trunk/unittests/ADT/StatisticTest.cpp Thu Mar 8 07:52:45 2018
@@ -19,6 +19,7 @@ namespace {
STATISTIC(Counter, "Counts things");
STATISTIC(Counter2, "Counts other things");
+#if LLVM_ENABLE_STATS
static void
extractCounters(const std::vector<std::pair<StringRef, unsigned>> &Range,
OptionalStatistic &S1, OptionalStatistic &S2) {
@@ -29,6 +30,7 @@ extractCounters(const std::vector<std::p
S2 = S;
}
}
+#endif
TEST(StatisticTest, Count) {
EnableStatistics();
More information about the llvm-commits
mailing list