summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Program.inc
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-12-13 23:16:49 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-12-13 23:16:49 +0000
commita2755f8efa8fd3c458cc18227255e514ae9d9bee (patch)
treed4194d933a7659878f0b21c7f6d045d0db4dd59e /llvm/lib/Support/Unix/Program.inc
parent7dfbeda68efc9cd4b0be4551894dbe2233157db4 (diff)
downloadbcm5719-llvm-a2755f8efa8fd3c458cc18227255e514ae9d9bee.tar.gz
bcm5719-llvm-a2755f8efa8fd3c458cc18227255e514ae9d9bee.zip
Support/Program: Make Change<stream>ToBinary return error_code.
llvm-svn: 146522
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
-rw-r--r--llvm/lib/Support/Unix/Program.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc
index 346baf1744d..e5990d06ecc 100644
--- a/llvm/lib/Support/Unix/Program.inc
+++ b/llvm/lib/Support/Unix/Program.inc
@@ -412,19 +412,19 @@ Program::Kill(std::string* ErrMsg) {
return false;
}
-bool Program::ChangeStdinToBinary(){
+error_code Program::ChangeStdinToBinary(){
// Do nothing, as Unix doesn't differentiate between text and binary.
- return false;
+ return make_error_code(errc::success);
}
-bool Program::ChangeStdoutToBinary(){
+error_code Program::ChangeStdoutToBinary(){
// Do nothing, as Unix doesn't differentiate between text and binary.
- return false;
+ return make_error_code(errc::success);
}
-bool Program::ChangeStderrToBinary(){
+error_code Program::ChangeStderrToBinary(){
// Do nothing, as Unix doesn't differentiate between text and binary.
- return false;
+ return make_error_code(errc::success);
}
}
OpenPOWER on IntegriCloud