From: Dan Gohman Date: Tue, 26 Jan 2010 04:12:55 +0000 (+0000) Subject: Print empty and full sets specially. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df6d5e03940c8a2a560b74a69061aff4ae1badf3;p=oota-llvm.git Print empty and full sets specially. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94506 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp index ddf14e33eed..bfee730db14 100644 --- a/lib/Support/ConstantRange.cpp +++ b/lib/Support/ConstantRange.cpp @@ -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...