llvm.org GIT mirror llvm / a4a68c1
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 Dan Gohman 10 years ago
2 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
5959 ///
6060 iterator Scanned;
6161
62 virtual void write_impl(const char *Ptr, size_t Size) {
63 ComputeColumn();
64 TheStream->write(Ptr, Size);
65 Scanned = begin();
66 }
62 virtual void write_impl(const char *Ptr, size_t Size);
6763
6864 /// current_pos - Return the current position within the stream,
6965 /// not counting the bytes currently in the buffer.
6161 write(Spaces, num);
6262 }
6363
64 void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) {
65 ComputeColumn();
66 TheStream->write(Ptr, Size);
67 Scanned = begin();
68 }
69
6470 /// fouts() - This returns a reference to a formatted_raw_ostream for
6571 /// standard output. Use it like: fouts() << "foo" << "bar";
6672 formatted_raw_ostream &llvm::fouts() {