From f46dc79ac502f6ed06dea3ba558bcfcc49061114 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 22 Aug 2008 08:44:47 +0000 Subject: [PATCH] Also overload for char, since the "char" type depends on the host. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55173 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/raw_ostream.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 37f2b59da45..34e40da5174 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -62,6 +62,13 @@ public: flush_impl(); } + raw_ostream &operator<<(char C) { + if (OutBufCur >= OutBufEnd) + flush_impl(); + *OutBufCur++ = C; + return *this; + } + raw_ostream &operator<<(unsigned char C) { if (OutBufCur >= OutBufEnd) flush_impl(); -- 2.34.1