summaryrefslogtreecommitdiff
path: root/include/llvm/Support/raw_ostream.h
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
commitc232a7e8feb28450f3f542ef5025197ff50ff9fc (patch)
treede218585174e32c1397a5eac74e069734e1f8302 /include/llvm/Support/raw_ostream.h
parentd3a974fc20ba3451d0ba331e44c09cd7d7ca7fcc (diff)
downloadllvm-c232a7e8feb28450f3f542ef5025197ff50ff9fc.tar.gz
llvm-c232a7e8feb28450f3f542ef5025197ff50ff9fc.tar.bz2
llvm-c232a7e8feb28450f3f542ef5025197ff50ff9fc.tar.xz
Add a comment noting that raw_os_ostream does not check for errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/raw_ostream.h')
-rw-r--r--include/llvm/Support/raw_ostream.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h
index 8242f04e23..261a9225c4 100644
--- a/include/llvm/Support/raw_ostream.h
+++ b/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;