mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-22 03:31:06 +00:00
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:
parent
1486ef96ed
commit
a4a68c1b43
@ -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.
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user