summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/raw_ostream.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-13 17:41:40 +0000
committerDan Gohman <gohman@apple.com>2009-08-13 17:41:40 +0000
commit854ea3c580f698e0bcfd3caad0a54bd139430805 (patch)
treedac963478622ec71e24cdabf6896608a43e52cf0 /llvm/lib/Support/raw_ostream.cpp
parent84487b98a5a35bfcaed85955158ca38015605fad (diff)
downloadbcm5719-llvm-854ea3c580f698e0bcfd3caad0a54bd139430805.tar.gz
bcm5719-llvm-854ea3c580f698e0bcfd3caad0a54bd139430805.zip
Set raw_os_ostream, raw_string_ostream, and raw_svector_ostream to be
unbuffered. std::ostream does its own buffering, and std::string and SmallVector both have allocation strategies intended to handle frequent appending. llvm-svn: 78924
Diffstat (limited to 'llvm/lib/Support/raw_ostream.cpp')
-rw-r--r--llvm/lib/Support/raw_ostream.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index c6d609bfc74..5eaf7bf6a04 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -441,10 +441,6 @@ raw_ostream &llvm::nulls() {
// raw_os_ostream
//===----------------------------------------------------------------------===//
-raw_os_ostream::~raw_os_ostream() {
- flush();
-}
-
void raw_os_ostream::write_impl(const char *Ptr, size_t Size) {
OS.write(Ptr, Size);
}
@@ -459,10 +455,6 @@ uint64_t raw_os_ostream::tell() {
// raw_string_ostream
//===----------------------------------------------------------------------===//
-raw_string_ostream::~raw_string_ostream() {
- flush();
-}
-
void raw_string_ostream::write_impl(const char *Ptr, size_t Size) {
OS.append(Ptr, Size);
}
@@ -471,10 +463,6 @@ void raw_string_ostream::write_impl(const char *Ptr, size_t Size) {
// raw_svector_ostream
//===----------------------------------------------------------------------===//
-raw_svector_ostream::~raw_svector_ostream() {
- flush();
-}
-
void raw_svector_ostream::write_impl(const char *Ptr, size_t Size) {
OS.append(Ptr, Ptr + Size);
}
OpenPOWER on IntegriCloud