Use static instead of anonymous namespace.
authorBill Wendling <isanbard@gmail.com>
Thu, 18 Aug 2011 17:57:57 +0000 (17:57 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 18 Aug 2011 17:57:57 +0000 (17:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137959 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/BasicBlockUtils.cpp

index 127e7c854d1c79bace7099b1b529df63ad018b2c..8b2ca206ccd5b19d3a4171898b794d0394d29b5b 100644 (file)
@@ -314,13 +314,12 @@ BasicBlock *llvm::SplitBlock(BasicBlock *Old, Instruction *SplitPt, Pass *P) {
   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>();
@@ -386,8 +385,6 @@ void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB,
   }
 }
 
-} // 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