summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-24 01:07:38 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-24 01:07:38 +0000
commitfbf741406ef468e8c978549144d7ded5d4428274 (patch)
treeeaec08bba79eb8be0617666c4dd1feb21ffcc55e
parent472d3b7037a79a7148d21d291f4c9dea15764a0f (diff)
downloadbcm5719-llvm-fbf741406ef468e8c978549144d7ded5d4428274.tar.gz
bcm5719-llvm-fbf741406ef468e8c978549144d7ded5d4428274.zip
Delete dead code.
llvm-svn: 202001
-rw-r--r--llvm/include/llvm/Support/Program.h5
-rw-r--r--llvm/lib/Support/Unix/Program.inc5
-rw-r--r--llvm/lib/Support/Windows/Program.inc7
3 files changed, 2 insertions, 15 deletions
diff --git a/llvm/include/llvm/Support/Program.h b/llvm/include/llvm/Support/Program.h
index 60b21818306..a1067a649ce 100644
--- a/llvm/include/llvm/Support/Program.h
+++ b/llvm/include/llvm/Support/Program.h
@@ -64,12 +64,11 @@ struct ProcessInfo {
/// the program could not be found.
std::string FindProgramByName(const std::string& name);
- // These functions change the specified standard stream (stdin, stdout, or
- // stderr) to binary mode. They return errc::success if the specified stream
+ // These functions change the specified standard stream (stdin or stdout) to
+ // binary mode. They return errc::success if the specified stream
// was changed. Otherwise a platform dependent error is returned.
error_code ChangeStdinToBinary();
error_code ChangeStdoutToBinary();
- error_code ChangeStderrToBinary();
/// This function executes the program using the arguments provided. The
/// invoked program will inherit the stdin, stdout, and stderr file
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc
index 5aa024a3352..b4df9284897 100644
--- a/llvm/lib/Support/Unix/Program.inc
+++ b/llvm/lib/Support/Unix/Program.inc
@@ -434,11 +434,6 @@ error_code sys::ChangeStdoutToBinary(){
return make_error_code(errc::success);
}
-error_code sys::ChangeStderrToBinary(){
- // Do nothing, as Unix doesn't differentiate between text and binary.
- return make_error_code(errc::success);
-}
-
bool llvm::sys::argumentsFitWithinSystemLimits(ArrayRef<const char*> Args) {
static long ArgMax = sysconf(_SC_ARG_MAX);
diff --git a/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc
index 365e87eea59..1b777084c71 100644
--- a/llvm/lib/Support/Windows/Program.inc
+++ b/llvm/lib/Support/Windows/Program.inc
@@ -437,13 +437,6 @@ error_code sys::ChangeStdoutToBinary(){
return make_error_code(errc::success);
}
-error_code sys::ChangeStderrToBinary(){
- int result = _setmode( _fileno(stderr), _O_BINARY );
- if (result == -1)
- return error_code(errno, generic_category());
- return make_error_code(errc::success);
-}
-
bool llvm::sys::argumentsFitWithinSystemLimits(ArrayRef<const char*> Args) {
// The documented max length of the command line passed to CreateProcess.
static const size_t MaxCommandStringLength = 32768;
OpenPOWER on IntegriCloud