return New;
}
-namespace {
-
/// UpdateAnalysisInformation - Update DominatorTree, LoopInfo, and LCCSA
/// analysis information.
-void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB,
- BasicBlock *const *Preds,
- unsigned NumPreds, Pass *P, bool &HasLoopExit) {
+static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB,
+ BasicBlock *const *Preds,
+ unsigned NumPreds, Pass *P,
+ bool &HasLoopExit) {
if (!P) return;
LoopInfo *LI = P->getAnalysisIfAvailable<LoopInfo>();
}
}
-} // end anonymous namespace
-
/// SplitBlockPredecessors - This method transforms BB by introducing a new
/// basic block into the function, and moving some of the predecessors of BB to
/// be predecessors of the new block. The new predecessors are indicated by the