diff --git a/include/llvm/Support/Streams.h b/include/llvm/Support/Streams.h index e9208644da4..33a4ffeb065 100644 --- a/include/llvm/Support/Streams.h +++ b/include/llvm/Support/Streams.h @@ -64,6 +64,12 @@ namespace llvm { return *this; } + template + 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; }