llvm.org GIT mirror llvm / fce4028
LiveInterval::removeKills and isKill don't need 'this' and can be static member functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61278 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
243243
244244 /// removeKills - Remove all the kills in specified range
245245 /// [Start, End] of the specified val#.
246 void removeKills(VNInfo *VNI, unsigned Start, unsigned End) {
246 static void removeKills(VNInfo *VNI, unsigned Start, unsigned End) {
247247 SmallVector &kills = VNI->kills;
248248 SmallVector::iterator
249249 I = std::lower_bound(kills.begin(), kills.end(), Start);
254254
255255 /// isKill - Return true if the specified index is a kill of the
256256 /// specified val#.
257 bool isKill(const VNInfo *VNI, unsigned KillIdx) const {
257 static bool isKill(const VNInfo *VNI, unsigned KillIdx) {
258258 const SmallVector &kills = VNI->kills;
259259 SmallVector::const_iterator
260260 I = std::lower_bound(kills.begin(), kills.end(), KillIdx);