summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit250635e3ac91f730f842e7195a54bfd637d33033 (patch)
tree26ea1d42c525b92523ebce2bc6bdab83d6e573a1 /llvm/lib/Support/FormattedStream.cpp
parente9f0bf5deeab9eb9894456da8b493a8d9f9c74d3 (diff)
downloadbcm5719-llvm-250635e3ac91f730f842e7195a54bfd637d33033.tar.gz
bcm5719-llvm-250635e3ac91f730f842e7195a54bfd637d33033.zip
Move FormattedStream's write_impl out of line.
llvm-svn: 79064
Diffstat (limited to 'llvm/lib/Support/FormattedStream.cpp')
-rw-r--r--llvm/lib/Support/FormattedStream.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/FormattedStream.cpp b/llvm/lib/Support/FormattedStream.cpp
index 7f8adfc3d74..867e5de4d12 100644
--- a/llvm/lib/Support/FormattedStream.cpp
+++ b/llvm/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() {
OpenPOWER on IntegriCloud