diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-06-04 23:52:59 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-06-04 23:52:59 +0000 |
commit | 851879c4cf1fc1f97be704a0459fb0ca5f327a44 (patch) | |
tree | 1c2dc67032af9c66c3697dc798cefc2d246b4a55 /lib/Transforms/Scalar/PredicateSimplifier.cpp | |
parent | fe7e397100edd4f2d618a1ff938dfa8624670ec1 (diff) |
Patches by Chuck Rose to unbreak V Studio builds.
Thanks Chuck!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/PredicateSimplifier.cpp')
-rw-r--r-- | lib/Transforms/Scalar/PredicateSimplifier.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/PredicateSimplifier.cpp b/lib/Transforms/Scalar/PredicateSimplifier.cpp index eedf2c2d46..d7849f6077 100644 --- a/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/lib/Transforms/Scalar/PredicateSimplifier.cpp @@ -232,6 +232,13 @@ namespace { bool operator<(unsigned to) const { return To < to; } + bool operator>(unsigned to) const { + return To > to; + } + + friend bool operator<(unsigned to, const Edge &edge) { + return edge.operator>(to); + } }; /// A single node in the InequalityGraph. This stores the canonical Value @@ -669,6 +676,14 @@ namespace { bool operator<(const Value *value) const { return V < value; } + + bool operator>(const Value *value) const { + return V > value; + } + + friend bool operator<(const Value *value, const ScopedRange &range) { + return range.operator>(value); + } }; TargetData *TD; |