Fix unused function warning in StatisticTest.cpp

llvm-svn: 327015
This commit is contained in:
Daniel Sanders 2018-03-08 15:52:45 +00:00
parent faf9b0f322
commit ce0bc92329
1 changed files with 2 additions and 0 deletions

View File

@ -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::pair<StringRef, unsigned>> &Range,
S2 = S;
}
}
#endif
TEST(StatisticTest, Count) {
EnableStatistics();