Add new constructors for LoopInfo/DominatorTree/BFI/BPI
[oota-llvm.git] / lib / Analysis / LoopInfo.cpp
index 7ca811067d41400ecc3051505feb09521403638b..bd0686075a90c0e5e021b9fb5079a2c376099bcd 100644 (file)
@@ -602,6 +602,10 @@ Loop *UnloopUpdater::getNearestLoop(BasicBlock *BB, Loop *BBLoop) {
   return NearLoop;
 }
 
+LoopInfo::LoopInfo(const DominatorTreeBase<BasicBlock> &DomTree) {
+  analyze(DomTree);
+}
+
 /// updateUnloop - The last backedge has been removed from a loop--now the
 /// "unloop". Find a new parent for the blocks contained within unloop and
 /// update the loop tree. We don't necessarily have valid dominators at this