Patches by Chuck Rose to unbreak V Studio builds.
authorBill Wendling <isanbard@gmail.com>
Mon, 4 Jun 2007 23:52:59 +0000 (23:52 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 4 Jun 2007 23:52:59 +0000 (23:52 +0000)
Thanks Chuck!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37428 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/PredicateSimplifier.cpp
utils/TableGen/RegisterInfoEmitter.cpp

index eedf2c2d4631a2d8af5915cdec14e02d887e5761..d7849f6077508d0a98145bb82f4bc7854786271e 100644 (file)
@@ -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;
index 8b21a9bd571081f492f642e7051a6bb63e91a308..5fbd013eaaf07c0c4e017d15098d62beca150bda 100644 (file)
@@ -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...