summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-13 21:51:15 +0000
committerDan Gohman <gohman@apple.com>2009-07-13 21:51:15 +0000
commitcc85ae132c24c04e0e78c1435a54f68eb7091baf (patch)
tree5a10216f63918d28e76bbecd687311451ce66d88 /llvm/lib/Analysis
parent9ab53d2b173f664cd352eead6321572a9d6d4c83 (diff)
downloadbcm5719-llvm-cc85ae132c24c04e0e78c1435a54f68eb7091baf.tar.gz
bcm5719-llvm-cc85ae132c24c04e0e78c1435a54f68eb7091baf.zip
Make Loop and MachineLoop be subclasses of LoopBase, rather than typedefs,
using the Curiously Recurring Template Pattern with LoopBase. This will help further refactoring, and future functionality for Loop. Also, Headers can now foward-declare Loop, instead of pulling in LoopInfo.h or doing tricks. llvm-svn: 75519
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/IVUsers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IVUsers.cpp b/llvm/lib/Analysis/IVUsers.cpp
index 317c8691640..9ad7cc9e5d4 100644
--- a/llvm/lib/Analysis/IVUsers.cpp
+++ b/llvm/lib/Analysis/IVUsers.cpp
@@ -54,7 +54,7 @@ static bool containsAddRecFromDifferentLoop(const SCEV *S, Loop *L) {
if (newLoop == L)
return false;
// if newLoop is an outer loop of L, this is OK.
- if (!LoopInfoBase<BasicBlock>::isNotAlreadyContainedIn(L, newLoop))
+ if (!LoopInfo::isNotAlreadyContainedIn(L, newLoop))
return false;
}
return true;
OpenPOWER on IntegriCloud