[llvm-commits] [llvm] r75794 - /llvm/trunk/include/llvm/Support/raw_ostream.h

Dan Gohman gohman at apple.com
Wed Jul 15 09:45:52 PDT 2009


Author: djg
Date: Wed Jul 15 11:45:52 2009
New Revision: 75794

URL: http://llvm.org/viewvc/llvm-project?rev=75794&view=rev
Log:
Add a comment noting that raw_os_ostream does not check for errors.

Modified:
    llvm/trunk/include/llvm/Support/raw_ostream.h

Modified: llvm/trunk/include/llvm/Support/raw_ostream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/raw_ostream.h?rev=75794&r1=75793&r2=75794&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/raw_ostream.h (original)
+++ llvm/trunk/include/llvm/Support/raw_ostream.h Wed Jul 15 11:45:52 2009
@@ -308,7 +308,8 @@
 //===----------------------------------------------------------------------===//
 
 /// 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;
 





More information about the llvm-commits mailing list