aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-20 16:44:40 +0000
committerDan Gohman <gohman@apple.com>2008-12-20 16:44:40 +0000
commitfce40287181af1ae376c3991626ffbf0ccd902b7 (patch)
tree1bf7e1077a1af0627f63e87170e2d35a4cf60c5d /include
parente19c6362d21c872abaf2f71ea9a0f859f33ee9b5 (diff)
downloadexternal_llvm-fce40287181af1ae376c3991626ffbf0ccd902b7.zip
external_llvm-fce40287181af1ae376c3991626ffbf0ccd902b7.tar.gz
external_llvm-fce40287181af1ae376c3991626ffbf0ccd902b7.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h4
1 files changed, 2 insertions, 2 deletions
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<unsigned, 4> &kills = VNI->kills;
SmallVector<unsigned, 4>::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<unsigned, 4> &kills = VNI->kills;
SmallVector<unsigned, 4>::const_iterator
I = std::lower_bound(kills.begin(), kills.end(), KillIdx);