mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Clean up the use of static and anonymous namespaces. This turned up
several things that were neither in an anonymous namespace nor static but not intended to be global. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51017 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -140,12 +140,13 @@ namespace {
|
||||
SmallPtrSet<MachineBasicBlock*, 16>& v);
|
||||
void mergeLiveIntervals(unsigned primary, unsigned secondary, unsigned VN);
|
||||
};
|
||||
|
||||
char StrongPHIElimination::ID = 0;
|
||||
RegisterPass<StrongPHIElimination> X("strong-phi-node-elimination",
|
||||
"Eliminate PHI nodes for register allocation, intelligently");
|
||||
}
|
||||
|
||||
char StrongPHIElimination::ID = 0;
|
||||
static RegisterPass<StrongPHIElimination>
|
||||
X("strong-phi-node-elimination",
|
||||
"Eliminate PHI nodes for register allocation, intelligently");
|
||||
|
||||
const PassInfo *llvm::StrongPHIEliminationID = X.getPassInfo();
|
||||
|
||||
/// computeDFS - Computes the DFS-in and DFS-out numbers of the dominator tree
|
||||
@@ -192,6 +193,8 @@ void StrongPHIElimination::computeDFS(MachineFunction& MF) {
|
||||
}
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
/// PreorderSorter - a helper class that is used to sort registers
|
||||
/// according to the preorder number of their defining blocks
|
||||
class PreorderSorter {
|
||||
@@ -219,6 +222,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
/// computeDomForest - compute the subforest of the DomTree corresponding
|
||||
/// to the defining blocks of the registers in question
|
||||
std::vector<StrongPHIElimination::DomForestNode*>
|
||||
|
Reference in New Issue
Block a user