diff options
Diffstat (limited to 'include/llvm/Support/ConstantRange.h')
-rw-r--r-- | include/llvm/Support/ConstantRange.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h index 41073b7b95..90a29902c3 100644 --- a/include/llvm/Support/ConstantRange.h +++ b/include/llvm/Support/ConstantRange.h @@ -25,6 +25,7 @@ #define LLVM_SUPPORT_CONSTANT_RANGE_H #include "llvm/Support/DataTypes.h" +#include "llvm/Support/Streams.h" #include <iosfwd> namespace llvm { @@ -140,6 +141,9 @@ class ConstantRange { /// print - Print out the bounds to a stream... /// + void print(llvm_ostream &OS) const { + if (OS.stream()) print(*OS.stream()); + } void print(std::ostream &OS) const; /// dump - Allow printing from a debugger easily... |