diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-13 17:41:40 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-13 17:41:40 +0000 |
commit | 0ba50bb05661165f2b97f4526732f109a81100b5 (patch) | |
tree | 225df6adf4d744169a033205fa269c6b8ad09f29 /lib/Support/raw_ostream.cpp | |
parent | 208ec0f32eed8874074bddf97cd04f60a772198d (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/raw_ostream.cpp')
-rw-r--r-- | lib/Support/raw_ostream.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index c6d609bfc7..5eaf7bf6a0 100644 --- a/lib/Support/raw_ostream.cpp +++ b/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); } |