Patches by Chuck Rose to unbreak V Studio builds.

Thanks Chuck!

llvm-svn: 37428
This commit is contained in:
Bill Wendling 2007-06-04 23:52:59 +00:00
parent a68662e4a4
commit d2b1274d1b
2 changed files with 16 additions and 0 deletions

View 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;

View 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...