Make some predicates static.
[oota-llvm.git] / lib / CodeGen / StrongPHIElimination.cpp
index 1a1f77c1c68f1fdc2b32433372d0919908a770e2..c3d554a3b631b67b792526add15ef6c0648a2af4 100644 (file)
@@ -231,7 +231,7 @@ StrongPHIElimination::computeDomForest(std::set<unsigned>& regs) {
 
 /// isLiveIn - helper method that determines, from a VarInfo, if a register
 /// is live into a block
-bool isLiveIn(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) {
+static bool isLiveIn(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) {
   if (V.AliveBlocks.test(MBB->getNumber()))
     return true;
   
@@ -244,7 +244,7 @@ bool isLiveIn(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) {
 
 /// isLiveOut - help method that determines, from a VarInfo, if a register is
 /// live out of a block.
-bool isLiveOut(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) {
+static bool isLiveOut(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) {
   if (MBB == V.DefInst->getParent() ||
       V.UsedBlocks.test(MBB->getNumber())) {
     for (std::vector<MachineInstr*>::iterator I = V.Kills.begin(), 
@@ -260,7 +260,7 @@ bool isLiveOut(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) {
 
 /// isKillInst - helper method that determines, from a VarInfo, if an 
 /// instruction kills a given register
-bool isKillInst(LiveVariables::VarInfo& V, MachineInstr* MI) {
+static bool isKillInst(LiveVariables::VarInfo& V, MachineInstr* MI) {
   return std::find(V.Kills.begin(), V.Kills.end(), MI) != V.Kills.end();
 }