Print empty and full sets specially.

llvm-svn: 94506
This commit is contained in:
Dan Gohman 2010-01-26 04:12:55 +00:00
parent 5fc4160ea3
commit 837ada7692
1 changed files with 6 additions and 1 deletions

View File

@ -650,7 +650,12 @@ ConstantRange::lshr(const ConstantRange &Amount) const {
/// print - Print out the bounds to a stream...
///
void ConstantRange::print(raw_ostream &OS) const {
OS << "[" << Lower << "," << Upper << ")";
if (isFullSet())
OS << "full-set";
else if (isEmptySet())
OS << "empty-set";
else
OS << "[" << Lower << "," << Upper << ")";
}
/// dump - Allow printing from a debugger easily...