summaryrefslogtreecommitdiff
path: root/lib/Support/FormattedStream.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-15 02:01:04 +0000
committerDan Gohman <gohman@apple.com>2009-08-15 02:01:04 +0000
commita4a68c1b439af1bacf8b9c3c06cdb97f56be4d94 (patch)
tree67108203d7d02460932d62cf51d114e2aab17135 /lib/Support/FormattedStream.cpp
parent1486ef96ed8eb364467f5261887514114af1e39e (diff)
downloadllvm-a4a68c1b439af1bacf8b9c3c06cdb97f56be4d94.tar.gz
llvm-a4a68c1b439af1bacf8b9c3c06cdb97f56be4d94.tar.bz2
llvm-a4a68c1b439af1bacf8b9c3c06cdb97f56be4d94.tar.xz
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
Diffstat (limited to 'lib/Support/FormattedStream.cpp')
-rw-r--r--lib/Support/FormattedStream.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Support/FormattedStream.cpp b/lib/Support/FormattedStream.cpp
index 7f8adfc3d7..867e5de4d1 100644
--- a/lib/Support/FormattedStream.cpp
+++ b/lib/Support/FormattedStream.cpp
@@ -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() {