forked from OSchip/llvm-project
Add ConstantRange information to the debugging output.
llvm-svn: 110598
This commit is contained in:
parent
f99e7e6643
commit
8afac043fb
|
@ -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() << '>';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue