mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-25 13:20:57 +00:00
Print empty and full sets specially.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94506 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
85fe07866a
commit
df6d5e0394
@ -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...
|
||||
|
Loading…
x
Reference in New Issue
Block a user