Move FormattedStream's write_impl out of line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79064 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-08-15 02:01:04 +00:00
parent 1486ef96ed
commit a4a68c1b43
2 changed files with 7 additions and 5 deletions

View File

@ -60,11 +60,7 @@ namespace llvm
///
iterator Scanned;
virtual void write_impl(const char *Ptr, size_t Size) {
ComputeColumn();
TheStream->write(Ptr, Size);
Scanned = begin();
}
virtual void write_impl(const char *Ptr, size_t Size);
/// current_pos - Return the current position within the stream,
/// not counting the bytes currently in the buffer.

View File

@ -62,6 +62,12 @@ void formatted_raw_ostream::PadToColumn(unsigned NewCol, unsigned MinPad) {
write(Spaces, num);
}
void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) {
ComputeColumn();
TheStream->write(Ptr, Size);
Scanned = begin();
}
/// fouts() - This returns a reference to a formatted_raw_ostream for
/// standard output. Use it like: fouts() << "foo" << "bar";
formatted_raw_ostream &llvm::fouts() {