[llvm-commits] CVS: llvm/include/llvm/ADT/Statistic.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 29 21:17:14 PDT 2006
Changes in directory llvm/include/llvm/ADT:
Statistic.h updated: 1.16 -> 1.17
---
Log message:
Instantiate Statistic<> in one place, not in every .o file that uses it.
---
Diffs of the changes: (+4 -1)
Statistic.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/ADT/Statistic.h
diff -u llvm/include/llvm/ADT/Statistic.h:1.16 llvm/include/llvm/ADT/Statistic.h:1.17
--- llvm/include/llvm/ADT/Statistic.h:1.16 Wed Jun 21 11:53:47 2006
+++ llvm/include/llvm/ADT/Statistic.h Tue Aug 29 23:17:00 2006
@@ -24,7 +24,8 @@
#ifndef LLVM_ADT_STATISTIC_H
#define LLVM_ADT_STATISTIC_H
-#include <iosfwd>
+#include <ostream>
+#include "llvm/Support/Compiler.h"
namespace llvm {
@@ -85,6 +86,8 @@
const Statistic &operator/=(const DataType &V) { Value /= V; return *this; }
};
+EXTERN_TEMPLATE_INSTANTIATION(class Statistic<unsigned>);
+
} // End llvm namespace
#endif
More information about the llvm-commits
mailing list