[llvm-commits] [llvm] r94506 - /llvm/trunk/lib/Support/ConstantRange.cpp
Dan Gohman
gohman at apple.com
Mon Jan 25 20:12:56 PST 2010
Author: djg
Date: Mon Jan 25 22:12:55 2010
New Revision: 94506
URL: http://llvm.org/viewvc/llvm-project?rev=94506&view=rev
Log:
Print empty and full sets specially.
Modified:
llvm/trunk/lib/Support/ConstantRange.cpp
Modified: llvm/trunk/lib/Support/ConstantRange.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ConstantRange.cpp?rev=94506&r1=94505&r2=94506&view=diff
==============================================================================
--- llvm/trunk/lib/Support/ConstantRange.cpp (original)
+++ llvm/trunk/lib/Support/ConstantRange.cpp Mon Jan 25 22:12:55 2010
@@ -650,7 +650,12 @@
/// 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...
More information about the llvm-commits
mailing list