summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Process.inc
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-09-06 10:53:22 +0000
committerDuncan Sands <baldrick@free.fr>2009-09-06 10:53:22 +0000
commit44d423ac93bda643d271c7767a369db6d0aa281d (patch)
tree7404bc090b7a0eebd1ff76a063f8eaa678a512c6 /llvm/lib/System/Unix/Process.inc
parent63951ada319348066ecbbaeebbdf9082b1df74fe (diff)
downloadbcm5719-llvm-44d423ac93bda643d271c7767a369db6d0aa281d.tar.gz
bcm5719-llvm-44d423ac93bda643d271c7767a369db6d0aa281d.zip
Tweak code into an equivalent form for which icc
doesn't warn about unreachable instructions. Patch by Erick Tryzelaar (#111). llvm-svn: 81110
Diffstat (limited to 'llvm/lib/System/Unix/Process.inc')
-rw-r--r--llvm/lib/System/Unix/Process.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/System/Unix/Process.inc b/llvm/lib/System/Unix/Process.inc
index c4ce35a208f..774783f8ad0 100644
--- a/llvm/lib/System/Unix/Process.inc
+++ b/llvm/lib/System/Unix/Process.inc
@@ -181,25 +181,28 @@ void Process::PreventCoreFiles() {
bool Process::StandardInIsUserInput() {
#if HAVE_ISATTY
return isatty(0);
-#endif
+#else
// If we don't have isatty, just return false.
return false;
+#endif
}
bool Process::StandardOutIsDisplayed() {
#if HAVE_ISATTY
return isatty(1);
-#endif
+#else
// If we don't have isatty, just return false.
return false;
+#endif
}
bool Process::StandardErrIsDisplayed() {
#if HAVE_ISATTY
return isatty(2);
-#endif
+#else
// If we don't have isatty, just return false.
return false;
+#endif
}
static unsigned getColumns(int FileID) {
OpenPOWER on IntegriCloud