[llvm-commits] [llvm] r61278 - /llvm/trunk/include/llvm/CodeGen/LiveInterval.h
Dan Gohman
gohman at apple.com
Sat Dec 20 08:44:41 PST 2008
Author: djg
Date: Sat Dec 20 10:44:40 2008
New Revision: 61278
URL: http://llvm.org/viewvc/llvm-project?rev=61278&view=rev
Log:
LiveInterval::removeKills and isKill don't need 'this' and
can be static member functions.
Modified:
llvm/trunk/include/llvm/CodeGen/LiveInterval.h
Modified: llvm/trunk/include/llvm/CodeGen/LiveInterval.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveInterval.h?rev=61278&r1=61277&r2=61278&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveInterval.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveInterval.h Sat Dec 20 10:44:40 2008
@@ -244,7 +244,7 @@
/// 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 @@
/// 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);
More information about the llvm-commits
mailing list