Make LoopInfoBase more generic, in preparation for having MachineLoopInfo. This involves a small interface change.

llvm-svn: 44348
This commit is contained in:
Owen Anderson
2007-11-27 03:43:35 +00:00
parent 5aad0d7ea2
commit b0dd27ee91
9 changed files with 86 additions and 53 deletions

View File

@@ -163,7 +163,7 @@ BasicBlock *llvm::SplitBlock(BasicBlock *Old, Instruction *SplitPt, Pass *P) {
// The new block lives in whichever loop the old one did.
if (Loop *L = LI.getLoopFor(Old))
L->addBasicBlockToLoop(New, LI);
L->addBasicBlockToLoop(New, LI.getBase());
if (DominatorTree *DT = P->getAnalysisToUpdate<DominatorTree>())
{