mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Tweak code into an equivalent form for which icc
doesn't warn about unreachable instructions. Patch by Erick Tryzelaar (#111). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81110 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user