diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Support/ConstantRange.cpp | 12 | ||||
| -rw-r--r-- | llvm/support/lib/Support/ConstantRange.cpp | 12 | 
2 files changed, 24 insertions, 0 deletions
diff --git a/llvm/lib/Support/ConstantRange.cpp b/llvm/lib/Support/ConstantRange.cpp index fe005efbad7..1414b9becac 100644 --- a/llvm/lib/Support/ConstantRange.cpp +++ b/llvm/lib/Support/ConstantRange.cpp @@ -225,3 +225,15 @@ ConstantRange ConstantRange::unionWith(const ConstantRange &CR) const {    return *this;  } + +/// print - Print out the bounds to a stream... +/// +void ConstantRange::print(std::ostream &OS) const { +  OS << "[" << Lower << "," << Upper << " )"; +} + +/// dump - Allow printing from a debugger easily... +/// +void ConstantRange::dump() const { +  print(std::cerr); +} diff --git a/llvm/support/lib/Support/ConstantRange.cpp b/llvm/support/lib/Support/ConstantRange.cpp index fe005efbad7..1414b9becac 100644 --- a/llvm/support/lib/Support/ConstantRange.cpp +++ b/llvm/support/lib/Support/ConstantRange.cpp @@ -225,3 +225,15 @@ ConstantRange ConstantRange::unionWith(const ConstantRange &CR) const {    return *this;  } + +/// print - Print out the bounds to a stream... +/// +void ConstantRange::print(std::ostream &OS) const { +  OS << "[" << Lower << "," << Upper << " )"; +} + +/// dump - Allow printing from a debugger easily... +/// +void ConstantRange::dump() const { +  print(std::cerr); +}  | 

