aboutsummaryrefslogtreecommitdiff
path: root/clang/lib
diff options
context:
space:
mode:
authorKai Nacke <kai.nacke@de.ibm.com>2020-05-20 11:10:31 +0200
committerKai Nacke <kai@redstar.de>2020-08-26 12:44:30 -0400
commited07e1fe0ffdb2c1dbff26ff4cf7558e0c419737 (patch)
tree4dc33ce94c7836464c127827d24e2e8b0f7da048 /clang/lib
parent2392ff093af128d5e46ce31e2ffa0b3e17185e32 (diff)
downloadllvm-ed07e1fe0ffdb2c1dbff26ff4cf7558e0c419737.zip
llvm-ed07e1fe0ffdb2c1dbff26ff4cf7558e0c419737.tar.gz
llvm-ed07e1fe0ffdb2c1dbff26ff4cf7558e0c419737.tar.bz2
[SystemZ/ZOS] Add header file to encapsulate use of <sysexits.h>
The non-standard header file `<sysexits.h>` provides some return values. `EX_IOERR` is used to as a special value to signal a broken pipe to the clang driver. On z/OS Unix System Services, this header file does not exists. This patch - adds a check for `<sysexits.h>`, removing the dependency on `LLVM_ON_UNIX` - adds a new header file `llvm/Support/ExitCodes`, which either includes `<sysexits.h>` or defines `EX_IOERR` - updates the users of `EX_IOERR` to include the new header file Reviewed By: hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D83472
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 45b5907..93b6d846 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -71,6 +71,7 @@
#include "llvm/Option/Option.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/ExitCodes.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Host.h"
@@ -87,7 +88,6 @@
#include <utility>
#if LLVM_ON_UNIX
#include <unistd.h> // getpid
-#include <sysexits.h> // EX_IOERR
#endif
using namespace clang::driver;