mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 17:24:24 +00:00
Add ConstantRange information to the debugging output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4fffb345ed
commit
2f3ffb80fa
@ -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…
x
Reference in New Issue
Block a user