diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2006-01-26 20:41:32 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2006-01-26 20:41:32 +0000 |
commit | 9471c8a93b117d8ac01c4ef1cb9faa583e03dec0 (patch) | |
tree | 4cebe10aa3a8220b4bf6d1c4ff31487463bcdeb0 /include/llvm/CodeGen/LiveInterval.h | |
parent | 4ccb070f158b0f331c68de800c6bab8c31c2ecb6 (diff) | |
download | external_llvm-9471c8a93b117d8ac01c4ef1cb9faa583e03dec0.zip external_llvm-9471c8a93b117d8ac01c4ef1cb9faa583e03dec0.tar.gz external_llvm-9471c8a93b117d8ac01c4ef1cb9faa583e03dec0.tar.bz2 |
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
Diffstat (limited to 'include/llvm/CodeGen/LiveInterval.h')
-rw-r--r-- | include/llvm/CodeGen/LiveInterval.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 4606781..f4f2b47 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -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 |