Improve compatibility with VC2005, patch by Morten Ofstad!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen
2006-01-26 20:41:32 +00:00
parent 4ccb070f15
commit 9471c8a93b
5 changed files with 21 additions and 8 deletions

View File

@ -64,6 +64,9 @@ namespace llvm {
return V < LR.start;
}
inline bool operator<(const LiveRange &LR, unsigned V) {
return LR.start < V;
}
/// LiveInterval - This class represents some number of live ranges for a
/// register or value. This class also contains a bit of register allocator