aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-07-09 23:43:41 +0000
committerDavid Greene <greened@obbligato.org>2009-07-09 23:43:41 +0000
commit53674361efd42f9dd7c4d293132106839ab3b893 (patch)
tree20db7728f1795eb85c05c0eba2a49e36b93b0d46 /lib/Support
parente5564748b7d35df5c06fd243d04ea1eb305d3bc3 (diff)
downloadexternal_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.cpp1
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;
}