Move FormattedStream's write_impl out of line.
authorDan Gohman <gohman@apple.com>
Sat, 15 Aug 2009 02:01:04 +0000 (02:01 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 15 Aug 2009 02:01:04 +0000 (02:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79064 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/FormattedStream.h
lib/Support/FormattedStream.cpp

index a74ee6f7d9d03898883c848462d28cbf13fd65e3..a7824f0aae2268a64ce6874b4284cfc5f285e033 100644 (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.
index 7f8adfc3d744f4552e44fac6311c767d61ed4b15..867e5de4d1295608cd2162da188fb8f5eddb3ee1 100644 (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() {