diff options
author | Daniel Sanders <daniel_l_sanders@apple.com> | 2018-03-08 15:52:45 +0000 |
---|---|---|
committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2018-03-08 15:52:45 +0000 |
commit | ce0bc92329737be5ab9d0c7d0f971501e210c08f (patch) | |
tree | 8d76dcec15bbc77deb92c4af8f0409b3e890f966 /llvm/unittests/ADT/StatisticTest.cpp | |
parent | faf9b0f32295decb3d1f4c02252bae72ce6a9a7a (diff) | |
download | bcm5719-llvm-ce0bc92329737be5ab9d0c7d0f971501e210c08f.tar.gz bcm5719-llvm-ce0bc92329737be5ab9d0c7d0f971501e210c08f.zip |
Fix unused function warning in StatisticTest.cpp
llvm-svn: 327015
Diffstat (limited to 'llvm/unittests/ADT/StatisticTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/StatisticTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/StatisticTest.cpp b/llvm/unittests/ADT/StatisticTest.cpp index ae518277270..17a5c7fc204 100644 --- a/llvm/unittests/ADT/StatisticTest.cpp +++ b/llvm/unittests/ADT/StatisticTest.cpp @@ -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(); |