summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-29 21:46:33 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-29 21:46:33 +0000
commit33e396d0414d190665734a327400fa1c3005288c (patch)
tree2a901ed0b96474d928599ad517ce683d23e67894 /llvm/lib/System/Unix
parentbf5b228c328597834f14144d6935fdb76fb20753 (diff)
downloadbcm5719-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/System/Unix')
-rw-r--r--llvm/lib/System/Unix/Program.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc
index d0dade1f8ca..182e14db096 100644
--- a/llvm/lib/System/Unix/Program.inc
+++ b/llvm/lib/System/Unix/Program.inc
@@ -17,8 +17,8 @@
//===----------------------------------------------------------------------===//
#include <llvm/Config/config.h>
+#include <llvm/Support/Streams.h>
#include "Unix.h"
-#include <iostream>
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
@@ -210,8 +210,8 @@ Program::ExecuteAndWait(const Path& path,
}
// Make sure stderr and stdout have been flushed
- std::cerr << std::flush;
- std::cout << std::flush;
+ cerr.flush();
+ cout.flush();
fsync(1);
fsync(2);
OpenPOWER on IntegriCloud