Remove more iostream header includes. Needed to implement a "FlushStream"
function to flush a specified std::ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51705 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc
index d0dade1..182e14d 100644
--- a/lib/System/Unix/Program.inc
+++ b/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 @@
}
// Make sure stderr and stdout have been flushed
- std::cerr << std::flush;
- std::cout << std::flush;
+ cerr.flush();
+ cout.flush();
fsync(1);
fsync(2);