summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Support/Streams.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Streams.h b/llvm/include/llvm/Support/Streams.h
index e9208644da4..33a4ffeb065 100644
--- a/llvm/include/llvm/Support/Streams.h
+++ b/llvm/include/llvm/Support/Streams.h
@@ -64,6 +64,12 @@ namespace llvm {
return *this;
}
+ template <typename Ty>
+ BaseStream &write(const Ty &A, unsigned N) {
+ if (Stream) Stream->write(A, N);
+ return *this;
+ }
+
operator StreamTy* () { return Stream; }
bool operator == (const StreamTy &S) { return &S == Stream; }
OpenPOWER on IntegriCloud