diff options
| author | Dan Gohman <gohman@apple.com> | 2010-04-15 17:08:50 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-04-15 17:08:50 +0000 |
| commit | 738422fa501a08e58d1d55ebebdf0ca499059d72 (patch) | |
| tree | bdf2ae210bf2fd57d31bf92e1a3d89a631ab3d58 /lib/Analysis | |
| parent | b414b393aa17693ce7db0ed9409e9c6a721394a2 (diff) | |
| download | external_llvm-738422fa501a08e58d1d55ebebdf0ca499059d72.zip external_llvm-738422fa501a08e58d1d55ebebdf0ca499059d72.tar.gz external_llvm-738422fa501a08e58d1d55ebebdf0ca499059d72.tar.bz2 | |
Fix a bunch of namespace polution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
| -rw-r--r-- | lib/Analysis/LoopInfo.cpp | 4 | ||||
| -rw-r--r-- | lib/Analysis/ScalarEvolutionExpander.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 1001d2b..735e31f 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -29,9 +29,9 @@ using namespace llvm; // Always verify loopinfo if expensive checking is enabled. #ifdef XDEBUG -bool VerifyLoopInfo = true; +static bool VerifyLoopInfo = true; #else -bool VerifyLoopInfo = false; +static bool VerifyLoopInfo = false; #endif static cl::opt<bool,true> VerifyLoopInfoX("verify-loop-info", cl::location(VerifyLoopInfo), diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index 1d13390..b90f051 100644 --- a/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/lib/Analysis/ScalarEvolutionExpander.cpp @@ -642,6 +642,8 @@ static const Loop *GetRelevantLoop(const SCEV *S, LoopInfo &LI, llvm_unreachable("Unexpected SCEV type!"); } +namespace { + /// LoopCompare - Compare loops by PickMostRelevantLoop. class LoopCompare { DominatorTree &DT; @@ -668,6 +670,8 @@ public: } }; +} + Value *SCEVExpander::visitAddExpr(const SCEVAddExpr *S) { const Type *Ty = SE.getEffectiveSCEVType(S->getType()); |
