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 7766c647cb
commit a5190f65e4

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();