[llvm-commits] CVS: llvm/lib/Bytecode/Reader/ReaderWrappers.cpp

Bill Wendling isanbard at gmail.com
Thu Dec 7 12:28:43 PST 2006



Changes in directory llvm/lib/Bytecode/Reader:

ReaderWrappers.cpp updated: 1.58 -> 1.59
---
Log message:

Removed more <iostream> includes


---
Diffs of the changes:  (+3 -5)

 ReaderWrappers.cpp |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)


Index: llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
diff -u llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.58 llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.59
--- llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.58	Thu Oct 12 13:32:30 2006
+++ llvm/lib/Bytecode/Reader/ReaderWrappers.cpp	Thu Dec  7 14:28:15 2006
@@ -21,9 +21,7 @@
 #include "llvm/System/MappedFile.h"
 #include "llvm/System/Program.h"
 #include <cerrno>
-#include <iostream>
 #include <memory>
-
 using namespace llvm;
 
 //===----------------------------------------------------------------------===//
@@ -164,9 +162,9 @@
   char Buffer[4096*4];
 
   // Read in all of the data from stdin, we cannot mmap stdin...
-  while (std::cin.good()) {
-    std::cin.read(Buffer, 4096*4);
-    int BlockSize = std::cin.gcount();
+  while (cin.stream()->good()) {
+    cin.stream()->read(Buffer, 4096*4);
+    int BlockSize = cin.stream()->gcount();
     if (0 >= BlockSize)
       break;
     FileData.insert(FileData.end(), Buffer, Buffer+BlockSize);






More information about the llvm-commits mailing list