diff options
author | David Greene <greened@obbligato.org> | 2009-07-09 23:43:41 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-07-09 23:43:41 +0000 |
commit | 53674361efd42f9dd7c4d293132106839ab3b893 (patch) | |
tree | 20db7728f1795eb85c05c0eba2a49e36b93b0d46 /lib/Support | |
parent | e5564748b7d35df5c06fd243d04ea1eb305d3bc3 (diff) | |
download | external_llvm-53674361efd42f9dd7c4d293132106839ab3b893.zip external_llvm-53674361efd42f9dd7c4d293132106839ab3b893.tar.gz external_llvm-53674361efd42f9dd7c4d293132106839ab3b893.tar.bz2 |
Add some hooks that a redesigned AsmStream needs to do its job. These
allow derived classes to examine the stream buffer before it's flushed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/raw_ostream.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index 42e6fda..403300f 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -120,6 +120,7 @@ raw_ostream &raw_ostream::operator<<(const void *P) { void raw_ostream::flush_nonempty() { assert(OutBufCur > OutBufStart && "Invalid call to flush_nonempty."); + AboutToFlush(); write_impl(OutBufStart, OutBufCur - OutBufStart); OutBufCur = OutBufStart; } |