diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-13 15:44:52 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-13 15:44:52 +0000 |
commit | 33e49ef5e5dc2d3e65bcd4fc1f20874bf3847829 (patch) | |
tree | 454bfbd24e64505c541c1355a0ced1e5c09ac0c3 /include/llvm/Support/raw_ostream.h | |
parent | d6c0f65b532f022e584d8f1e3c044593b4c74a99 (diff) | |
download | llvm-33e49ef5e5dc2d3e65bcd4fc1f20874bf3847829.tar.gz llvm-33e49ef5e5dc2d3e65bcd4fc1f20874bf3847829.tar.bz2 llvm-33e49ef5e5dc2d3e65bcd4fc1f20874bf3847829.tar.xz |
Fix the buffer handling logic so that write_impl is always called with
a full buffer, rather than often being called with a
slightly-less-than-full buffer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/raw_ostream.h')
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index f7fbe21ee3..58de3e8186 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -261,6 +261,10 @@ private: /// non-empty. This outputs the currently buffered data and resets /// the buffer to empty. void flush_nonempty(); + + /// copy_to_buffer - Copy data into the buffer. Size must not be + /// greater than the number of unused bytes in the buffer. + void copy_to_buffer(const char *Ptr, size_t Size); }; //===----------------------------------------------------------------------===// |