X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FStatistic.cpp;h=13acc1b0fa1e541086c40724be001615ee5d0b4d;hb=de75d7ffcd5ed315240cfe0c52a821cf66411eda;hp=4516ebc6b344ab2a69aea4c886aa4bea9a5c9e1b;hpb=34cd4a484e532cc463fd5a4bf59b88d13c5467c1;p=oota-llvm.git diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp index 4516ebc6b34..13acc1b0fa1 100644 --- a/lib/Support/Statistic.cpp +++ b/lib/Support/Statistic.cpp @@ -70,6 +70,8 @@ void Statistic::RegisterStatistic() { Initialized = true; } +namespace { + struct NameCompare { bool operator()(const Statistic *LHS, const Statistic *RHS) const { int Cmp = std::strcmp(LHS->getName(), RHS->getName()); @@ -80,6 +82,8 @@ struct NameCompare { } }; +} + // Print information when destroyed, iff command line option is specified. StatisticInfo::~StatisticInfo() { // Statistics not enabled?