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 | |
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
-rw-r--r-- | lib/Transforms/Scalar/PredicateSimplifier.cpp | 15 | ||||
-rw-r--r-- | utils/TableGen/RegisterInfoEmitter.cpp | 1 |
2 files changed, 16 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; diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index 8b21a9bd57..5fbd013eaa 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -478,6 +478,7 @@ void RegisterInfoEmitter::run(std::ostream &OS) { OS << " }; break;\n"; } OS << " };\n"; + OS << " return 0;\n"; OS << "}\n\n"; // Emit the constructor of the class... |