Put all LLVM code into the llvm namespace, as per bug 109.
llvm-svn: 9903
diff --git a/llvm/lib/Transforms/Scalar/PRE.cpp b/llvm/lib/Transforms/Scalar/PRE.cpp
index fad5789..770cd44d 100644
--- a/llvm/lib/Transforms/Scalar/PRE.cpp
+++ b/llvm/lib/Transforms/Scalar/PRE.cpp
@@ -36,10 +36,12 @@
#include "Support/Statistic.h"
#include "Support/hash_set"
+namespace llvm {
+
namespace {
Statistic<> NumExprsEliminated("pre", "Number of expressions constantified");
Statistic<> NumRedundant ("pre", "Number of redundant exprs eliminated");
- Statistic<> NumInserted ("pre", "Number of expressions inserted");
+ static Statistic<> NumInserted ("pre", "Number of expressions inserted");
struct PRE : public FunctionPass {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -630,3 +632,5 @@
return Changed;
}
+
+} // End llvm namespace