From fce40287181af1ae376c3991626ffbf0ccd902b7 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 20 Dec 2008 16:44:40 +0000 Subject: 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 --- include/llvm/CodeGen/LiveInterval.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 4062480..880d541 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -244,7 +244,7 @@ namespace llvm { /// removeKills - Remove all the kills in specified range /// [Start, End] of the specified val#. - void removeKills(VNInfo *VNI, unsigned Start, unsigned End) { + static void removeKills(VNInfo *VNI, unsigned Start, unsigned End) { SmallVector &kills = VNI->kills; SmallVector::iterator I = std::lower_bound(kills.begin(), kills.end(), Start); @@ -255,7 +255,7 @@ namespace llvm { /// isKill - Return true if the specified index is a kill of the /// specified val#. - bool isKill(const VNInfo *VNI, unsigned KillIdx) const { + static bool isKill(const VNInfo *VNI, unsigned KillIdx) { const SmallVector &kills = VNI->kills; SmallVector::const_iterator I = std::lower_bound(kills.begin(), kills.end(), KillIdx); -- cgit v1.1