[llvm-commits] CVS: llvm/include/llvm/System/Program.h

Reid Spencer reid at x10sys.com
Wed Jun 7 16:18:49 PDT 2006



Changes in directory llvm/include/llvm/System:

Program.h updated: 1.9 -> 1.10
---
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:  (+4 -0)

 Program.h |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/include/llvm/System/Program.h
diff -u llvm/include/llvm/System/Program.h:1.9 llvm/include/llvm/System/Program.h:1.10
--- llvm/include/llvm/System/Program.h:1.9	Fri May 19 14:07:54 2006
+++ llvm/include/llvm/System/Program.h	Wed Jun  7 18:18:33 2006
@@ -74,6 +74,10 @@
           ///< this function will wait until the child finishes or forever if
           ///< it doesn't.
       );
+      // These methods change the specified standard stream (stdin or stdout) to
+      // binary mode.
+      static void ChangeStdinToBinary();
+      static void ChangeStdoutToBinary();
   };
 }
 }






More information about the llvm-commits mailing list