projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dba6a1
)
Overload for both signed and unsigned char.
author
Owen Anderson
<resistor@mac.com>
Fri, 22 Aug 2008 07:42:25 +0000
(07:42 +0000)
committer
Owen Anderson
<resistor@mac.com>
Fri, 22 Aug 2008 07:42:25 +0000
(07:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55171
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/raw_ostream.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/raw_ostream.h
b/include/llvm/Support/raw_ostream.h
index 2210de1da1a44c52bfe636581a6a407709f89ae5..37f2b59da45a31d6b33f1d12782a76b89029f72c 100644
(file)
--- a/
include/llvm/Support/raw_ostream.h
+++ b/
include/llvm/Support/raw_ostream.h
@@
-62,7
+62,14
@@
public:
flush_impl();
}
- raw_ostream &operator<<(char C) {
+ raw_ostream &operator<<(unsigned char C) {
+ if (OutBufCur >= OutBufEnd)
+ flush_impl();
+ *OutBufCur++ = C;
+ return *this;
+ }
+
+ raw_ostream &operator<<(signed char C) {
if (OutBufCur >= OutBufEnd)
flush_impl();
*OutBufCur++ = C;