Add ConstantRange information to the debugging output.

llvm-svn: 110598
This commit is contained in:
Owen Anderson 2010-08-09 20:50:46 +00:00
parent f99e7e6643
commit 8afac043fb
1 changed files with 3 additions and 0 deletions

View File

@ -247,6 +247,9 @@ raw_ostream &operator<<(raw_ostream &OS, const LVILatticeVal &Val) {
if (Val.isNotConstant())
return OS << "notconstant<" << *Val.getNotConstant() << '>';
else if (Val.isConstantRange())
return OS << "constantrange<" << Val.getConstantRange().getLower() << ", "
<< Val.getConstantRange().getUpper() << '>';
return OS << "constant<" << *Val.getConstant() << '>';
}
}