forked from OSchip/llvm-project
Fix unused function warning in StatisticTest.cpp
llvm-svn: 327015
This commit is contained in:
parent
faf9b0f322
commit
ce0bc92329
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue