[llvm-commits] CVS: llvm/lib/Support/MemoryBuffer.cpp
Jeff Cohen
jeffc at jolt-lang.org
Mon May 7 08:22:23 PDT 2007
Changes in directory llvm/lib/Support:
MemoryBuffer.cpp updated: 1.5 -> 1.6
---
Log message:
Unbreak VC++ build.
---
Diffs of the changes: (+2 -0)
MemoryBuffer.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/Support/MemoryBuffer.cpp
diff -u llvm/lib/Support/MemoryBuffer.cpp:1.5 llvm/lib/Support/MemoryBuffer.cpp:1.6
--- llvm/lib/Support/MemoryBuffer.cpp:1.5 Sun May 6 18:32:36 2007
+++ llvm/lib/Support/MemoryBuffer.cpp Mon May 7 10:21:46 2007
@@ -14,6 +14,7 @@
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/System/MappedFile.h"
#include "llvm/System/Process.h"
+#include "llvm/System/Program.h"
#include <cassert>
#include <cstdio>
#include <cstring>
@@ -246,6 +247,7 @@
std::vector<char> FileData;
// Read in all of the data from stdin, we cannot mmap stdin.
+ sys::Program::ChangeStdinToBinary();
while (size_t ReadBytes = fread(Buffer, 1, 4096*4, stdin))
FileData.insert(FileData.end(), Buffer, Buffer+ReadBytes);
More information about the llvm-commits
mailing list