summaryrefslogtreecommitdiff
path: root/include/llvm/Support/raw_ostream.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-13 17:07:08 +0000
committerDan Gohman <gohman@apple.com>2009-08-13 17:07:08 +0000
commitb3667ae9b6fb204e60d4e1def21442fbf0251f99 (patch)
tree03f2736810ab9be3121dd0bf8556e6e71737a9ab /include/llvm/Support/raw_ostream.h
parentb42dad4761968b4b052e72494ce1bf0c7b3aba3e (diff)
downloadllvm-b3667ae9b6fb204e60d4e1def21442fbf0251f99.tar.gz
llvm-b3667ae9b6fb204e60d4e1def21442fbf0251f99.tar.bz2
llvm-b3667ae9b6fb204e60d4e1def21442fbf0251f99.tar.xz
Make raw_ostream non-copyable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/raw_ostream.h')
-rw-r--r--include/llvm/Support/raw_ostream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h
index 82520ce191..5d6d59f1d7 100644
--- a/include/llvm/Support/raw_ostream.h
+++ b/include/llvm/Support/raw_ostream.h
@@ -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