From: Owen Anderson Date: Mon, 7 Jan 2008 21:30:40 +0000 (+0000) Subject: Make some predicates static. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9e549202a001cb416c98a75f3c6d6bd68ae4139f;p=oota-llvm.git Make some predicates static. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45718 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index 1a1f77c1c68..c3d554a3b63 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/lib/CodeGen/StrongPHIElimination.cpp @@ -231,7 +231,7 @@ StrongPHIElimination::computeDomForest(std::set& 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::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(); }