mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-23 01:25:32 +00:00
Removed more <iostream> includes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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 @@ BytecodeStdinReader::read(std::string* ErrMsg)
|
||||
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);
|
||||
|
Reference in New Issue
Block a user