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 | ab11a81fc07345c0117d2fea2a9e4f7c4df21d66 (patch) | |
| tree | 883f7d7831bcc253d9b562d01e69f8523ac0982b /llvm/lib/Support | |
| parent | 26b2ba42857c9aa31e4ca2a845430ca9bc71abd8 (diff) | |
| download | bcm5719-llvm-ab11a81fc07345c0117d2fea2a9e4f7c4df21d66.tar.gz bcm5719-llvm-ab11a81fc07345c0117d2fea2a9e4f7c4df21d66.zip | |
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.
llvm-svn: 75199
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/raw_ostream.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp index 42e6fda97ba..403300f1bc4 100644 --- a/llvm/lib/Support/raw_ostream.cpp +++ b/llvm/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; } |

