diff options
author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-08-22 08:44:47 +0000 |
---|---|---|
committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-08-22 08:44:47 +0000 |
commit | f46dc79ac502f6ed06dea3ba558bcfcc49061114 (patch) | |
tree | 62cd4e801fa3cb66c1835d5f2f003b9072a6696f /include/llvm/Support/raw_ostream.h | |
parent | 1f83b02c62380f5ac5502eccc45d7b6203a7ea93 (diff) | |
download | llvm-f46dc79ac502f6ed06dea3ba558bcfcc49061114.tar.gz llvm-f46dc79ac502f6ed06dea3ba558bcfcc49061114.tar.bz2 llvm-f46dc79ac502f6ed06dea3ba558bcfcc49061114.tar.xz |
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
Diffstat (limited to 'include/llvm/Support/raw_ostream.h')
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 37f2b59da4..34e40da517 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(); |