mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
For 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28722 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -74,6 +74,10 @@ namespace sys {
|
||||
///< 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();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user