aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/FormattedStream.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/Support/FormattedStream.h b/include/llvm/Support/FormattedStream.h
index a8300b4..4b13ff2 100644
--- a/include/llvm/Support/FormattedStream.h
+++ b/include/llvm/Support/FormattedStream.h
@@ -49,13 +49,13 @@ namespace llvm
///
bool DeleteStream;
- /// ColumnFlushed - The current output column of the data that's
- /// been flushed. The column scheme is zero-based.
+ /// Column - The current output column of the stream. The column
+ /// scheme is zero-based.
///
- unsigned ColumnFlushed;
+ unsigned Column;
virtual void write_impl(const char *Ptr, size_t Size) {
- ComputeColumn(ColumnFlushed);
+ ComputeColumn(Ptr, Size);
TheStream->write(Ptr, Size);
}
@@ -67,10 +67,10 @@ namespace llvm
return TheStream->tell() - TheStream->GetNumBytesInBuffer();
}
- /// ComputeColumn - Examine the current buffer and figure out
- /// which column we're in.
+ /// ComputeColumn - Examine the current output and figure out
+ /// which column we end up in after output.
///
- void ComputeColumn(unsigned &Column);
+ void ComputeColumn(const char *Ptr, size_t Size);
public:
/// formatted_raw_ostream - Open the specified file for
@@ -84,11 +84,11 @@ namespace llvm
/// underneath it.
///
formatted_raw_ostream(raw_ostream &Stream, bool Delete = false)
- : raw_ostream(), TheStream(0), DeleteStream(false), ColumnFlushed(0) {
+ : raw_ostream(), TheStream(0), DeleteStream(false), Column(0) {
setStream(Stream, Delete);
}
explicit formatted_raw_ostream()
- : raw_ostream(), TheStream(0), DeleteStream(false), ColumnFlushed(0) {}
+ : raw_ostream(), TheStream(0), DeleteStream(false), Column(0) {}
~formatted_raw_ostream() {
if (DeleteStream)