diff options
| author | Bill Wendling <isanbard@gmail.com> | 2008-05-29 21:46:33 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2008-05-29 21:46:33 +0000 |
| commit | 33e396d0414d190665734a327400fa1c3005288c (patch) | |
| tree | 2a901ed0b96474d928599ad517ce683d23e67894 /llvm/lib/Support/Streams.cpp | |
| parent | bf5b228c328597834f14144d6935fdb76fb20753 (diff) | |
| download | bcm5719-llvm-33e396d0414d190665734a327400fa1c3005288c.tar.gz bcm5719-llvm-33e396d0414d190665734a327400fa1c3005288c.zip | |
Remove more iostream header includes. Needed to implement a "FlushStream"
function to flush a specified std::ostream.
llvm-svn: 51705
Diffstat (limited to 'llvm/lib/Support/Streams.cpp')
| -rw-r--r-- | llvm/lib/Support/Streams.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Support/Streams.cpp b/llvm/lib/Support/Streams.cpp index 122955ff4eb..cf6cfeb7fd0 100644 --- a/llvm/lib/Support/Streams.cpp +++ b/llvm/lib/Support/Streams.cpp @@ -19,3 +19,12 @@ using namespace llvm; OStream llvm::cout(std::cout); OStream llvm::cerr(std::cerr); IStream llvm::cin(std::cin); + +namespace llvm { + +/// FlushStream - Function called by BaseStream to flush an ostream. +void FlushStream(std::ostream &S) { + S << std::flush; +} + +} // end anonymous namespace |

