Don't include things in anonymous namespaces that don't need it.
authorDan Gohman <gohman@apple.com>
Sat, 19 Jun 2010 21:21:39 +0000 (21:21 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 19 Jun 2010 21:21:39 +0000 (21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106395 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopStrengthReduce.cpp

index 94df9557608fa9cb98c7a9e12e9e5d6ec954e4c2..c84e5a285b4551e69f713ad1a8a5d9e5a7ab4dc5 100644 (file)
@@ -976,6 +976,8 @@ public:
   void dump() const;
 };
 
+}
+
 /// HasFormula - Test whether this use as a formula which has the same
 /// registers as the given formula.
 bool LSRUse::HasFormulaWithSameRegs(const Formula &F) const {
@@ -1203,6 +1205,8 @@ static bool isAlwaysFoldable(const SCEV *S,
   return isLegalUse(AM, MinOffset, MaxOffset, Kind, AccessTy, TLI);
 }
 
+namespace {
+
 /// FormulaSorter - This class implements an ordering for formulae which sorts
 /// the by their standalone cost.
 class FormulaSorter {