summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-15 16:45:52 +0000
committerDan Gohman <gohman@apple.com>2009-07-15 16:45:52 +0000
commit2d6b047463f0ea354db1a63d3254667bfe6e85fe (patch)
treec53b68e28c9daafd55ca1a6858d50755cc835a9d
parent213e87b1fe15b35fc8d1885ecedfa1b83c5cb153 (diff)
downloadbcm5719-llvm-2d6b047463f0ea354db1a63d3254667bfe6e85fe.tar.gz
bcm5719-llvm-2d6b047463f0ea354db1a63d3254667bfe6e85fe.zip
Add a comment noting that raw_os_ostream does not check for errors.
llvm-svn: 75794
-rw-r--r--llvm/include/llvm/Support/raw_ostream.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/raw_ostream.h b/llvm/include/llvm/Support/raw_ostream.h
index 8242f04e23c..261a9225c43 100644
--- a/llvm/include/llvm/Support/raw_ostream.h
+++ b/llvm/include/llvm/Support/raw_ostream.h
@@ -308,7 +308,8 @@ raw_ostream &errs();
//===----------------------------------------------------------------------===//
/// raw_os_ostream - A raw_ostream that writes to an std::ostream. This is a
-/// simple adaptor class.
+/// simple adaptor class. It does check for I/O errors; clients should use
+/// the underlying stream to detect errors.
class raw_os_ostream : public raw_ostream {
std::ostream &OS;
OpenPOWER on IntegriCloud