projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
raw_ostream: << operator for callables with raw_stream argument
[oota-llvm.git]
/
lib
/
Support
/
raw_ostream.cpp
diff --git
a/lib/Support/raw_ostream.cpp
b/lib/Support/raw_ostream.cpp
index 49ef400c5f2d7d32c1c8bc79cb72b942f58f8ae3..5b1dceca0bfc8e13bcfa53c1257d7f07517d049f 100644
(file)
--- a/
lib/Support/raw_ostream.cpp
+++ b/
lib/Support/raw_ostream.cpp
@@
-264,6
+264,10
@@
raw_ostream &raw_ostream::operator<<(double N) {
return this->operator<<(format("%e", N));
}
+raw_ostream &raw_ostream::operator<<(Printable P) {
+ P(*this);
+ return *this;
+}
void raw_ostream::flush_nonempty() {