mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 14:07:32 +00:00
Add printing support to ConstantRange class
llvm-svn: 3565
This commit is contained in:
parent
0c4ea48b54
commit
1d7454a065
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user