diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-08-18 17:57:57 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-08-18 17:57:57 +0000 |
commit | d4770144d46992be0321d3cd4dc9315da1aa4d5d (patch) | |
tree | 6166fd1b11d1b8ffe26be7fe8578d0f038ed776c /lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 7750b8df6aaf9182b8205b98c335bf0f0b19e1b6 (diff) | |
download | external_llvm-d4770144d46992be0321d3cd4dc9315da1aa4d5d.zip external_llvm-d4770144d46992be0321d3cd4dc9315da1aa4d5d.tar.gz external_llvm-d4770144d46992be0321d3cd4dc9315da1aa4d5d.tar.bz2 |
Use static instead of anonymous namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r-- | lib/Transforms/Utils/BasicBlockUtils.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Transforms/Utils/BasicBlockUtils.cpp b/lib/Transforms/Utils/BasicBlockUtils.cpp index 127e7c8..8b2ca20 100644 --- a/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -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 |