Make raw_ostream non-copyable.
authorDan Gohman <gohman@apple.com>
Thu, 13 Aug 2009 17:07:08 +0000 (17:07 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 13 Aug 2009 17:07:08 +0000 (17:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78920 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/raw_ostream.h

index 82520ce19117980f2bbad15b5f9932e3f076bc8e..5d6d59f1d7fcf72a20262bc32455bccd7ccc76a0 100644 (file)
@@ -32,6 +32,10 @@ namespace llvm {
 /// 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