mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Use static instead of anonymous namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7750b8df6a
commit
d4770144d4
@ -314,13 +314,12 @@ BasicBlock *llvm::SplitBlock(BasicBlock *Old, Instruction *SplitPt, Pass *P) {
|
|||||||
return New;
|
return New;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
/// UpdateAnalysisInformation - Update DominatorTree, LoopInfo, and LCCSA
|
/// UpdateAnalysisInformation - Update DominatorTree, LoopInfo, and LCCSA
|
||||||
/// analysis information.
|
/// analysis information.
|
||||||
void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB,
|
static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB,
|
||||||
BasicBlock *const *Preds,
|
BasicBlock *const *Preds,
|
||||||
unsigned NumPreds, Pass *P, bool &HasLoopExit) {
|
unsigned NumPreds, Pass *P,
|
||||||
|
bool &HasLoopExit) {
|
||||||
if (!P) return;
|
if (!P) return;
|
||||||
|
|
||||||
LoopInfo *LI = P->getAnalysisIfAvailable<LoopInfo>();
|
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
|
/// SplitBlockPredecessors - This method transforms BB by introducing a new
|
||||||
/// basic block into the function, and moving some of the predecessors of BB to
|
/// 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
|
/// be predecessors of the new block. The new predecessors are indicated by the
|
||||||
|
Loading…
Reference in New Issue
Block a user