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

Dan Gohman gohman at apple.com
Thu Aug 13 10:07:08 PDT 2009


Author: djg
Date: Thu Aug 13 12:07:08 2009
New Revision: 78920

URL: http://llvm.org/viewvc/llvm-project?rev=78920&view=rev
Log:
Make raw_ostream non-copyable.

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=78920&r1=78919&r2=78920&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/raw_ostream.h (original)
+++ llvm/trunk/include/llvm/Support/raw_ostream.h Thu Aug 13 12:07:08 2009
@@ -32,6 +32,10 @@
 /// a chunk at a time.
 class raw_ostream {
 private:
+  // Do not implement. raw_ostream is noncopyable.
+  void operator=(const raw_ostream &);
+  raw_ostream(const raw_ostream &);
+
   /// The buffer is handled in such a way that the buffer is
   /// uninitialized, unbuffered, or out of space when OutBufCur >=
   /// OutBufEnd. Thus a single comparison suffices to determine if we





More information about the llvm-commits mailing list