[llvm-commits] [llvm] r79064 - in /llvm/trunk: include/llvm/Support/FormattedStream.h lib/Support/FormattedStream.cpp
Dan Gohman
gohman at apple.com
Fri Aug 14 19:01:05 PDT 2009
Author: djg
Date: Fri Aug 14 21:01:04 2009
New Revision: 79064
URL: http://llvm.org/viewvc/llvm-project?rev=79064&view=rev
Log:
Move FormattedStream's write_impl out of line.
Modified:
llvm/trunk/include/llvm/Support/FormattedStream.h
llvm/trunk/lib/Support/FormattedStream.cpp
Modified: llvm/trunk/include/llvm/Support/FormattedStream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FormattedStream.h?rev=79064&r1=79063&r2=79064&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/FormattedStream.h (original)
+++ llvm/trunk/include/llvm/Support/FormattedStream.h Fri Aug 14 21:01:04 2009
@@ -60,11 +60,7 @@
///
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.
Modified: llvm/trunk/lib/Support/FormattedStream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/FormattedStream.cpp?rev=79064&r1=79063&r2=79064&view=diff
==============================================================================
--- llvm/trunk/lib/Support/FormattedStream.cpp (original)
+++ llvm/trunk/lib/Support/FormattedStream.cpp Fri Aug 14 21:01:04 2009
@@ -62,6 +62,12 @@
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() {
More information about the llvm-commits
mailing list