mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Add printing support to ConstantRange class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3566 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
96f9d7232c
commit
7382e73f86
@ -18,6 +18,7 @@
|
|||||||
#define LLVM_SUPPORT_CONSTANT_RANGE_H
|
#define LLVM_SUPPORT_CONSTANT_RANGE_H
|
||||||
|
|
||||||
#include "Support/DataTypes.h"
|
#include "Support/DataTypes.h"
|
||||||
|
#include <iosfwd>
|
||||||
class ConstantIntegral;
|
class ConstantIntegral;
|
||||||
class Type;
|
class Type;
|
||||||
|
|
||||||
@ -92,6 +93,19 @@ class ConstantRange {
|
|||||||
/// set before.
|
/// set before.
|
||||||
///
|
///
|
||||||
ConstantRange unionWith(const ConstantRange &CR) const;
|
ConstantRange unionWith(const ConstantRange &CR) const;
|
||||||
|
|
||||||
|
/// print - Print out the bounds to a stream...
|
||||||
|
///
|
||||||
|
void print(std::ostream &OS) const;
|
||||||
|
|
||||||
|
/// dump - Allow printing from a debugger easily...
|
||||||
|
///
|
||||||
|
void dump() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline std::ostream &operator<<(std::ostream &OS, const ConstantRange &CR) {
|
||||||
|
CR.print(OS);
|
||||||
|
return OS;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user