[llvm-commits] CVS: llvm/lib/System/Unix/Program.inc
Reid Spencer
reid at x10sys.com
Wed Jun 7 16:18:47 PDT 2006
Changes in directory llvm/lib/System/Unix:
Program.inc updated: 1.16 -> 1.17
---
Log message:
For PR787: http://llvm.cs.uiuc.edu/PR787 :
Provide new llvm::sys::Program facilities for converting the stdout and
stdin to binary mode. There is no standard way to do this and the available
mechanisms are platform specific. Adjust the bytecode reader and writer to
use these methods when their input is stdin or output is stdout. THis avoids
the problem with \n writing CRLF to a bytecode file on windows.
Patch Contributed by Michael Smith.
---
Diffs of the changes: (+8 -0)
Program.inc | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/lib/System/Unix/Program.inc
diff -u llvm/lib/System/Unix/Program.inc:1.16 llvm/lib/System/Unix/Program.inc:1.17
--- llvm/lib/System/Unix/Program.inc:1.16 Thu Dec 22 14:00:16 2005
+++ llvm/lib/System/Unix/Program.inc Wed Jun 7 18:18:33 2006
@@ -227,4 +227,12 @@
}
+void Program::ChangeStdinToBinary(){
+ // Do nothing, as Unix doesn't differentiate between text and binary.
+}
+
+void Program::ChangeStdoutToBinary(){
+ // Do nothing, as Unix doesn't differentiate between text and binary.
+}
+
}
More information about the llvm-commits
mailing list