Skip to content

Commit 14a2af3

Browse files
committed
clean up make file & source
1 parent bb5329d commit 14a2af3

File tree

2 files changed

+39
-44
lines changed

2 files changed

+39
-44
lines changed

llvm/lib/Support/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ if(LLVM_INTEGRATED_CRT_ALLOC)
125125
endif()
126126
endif()
127127

128-
#if (CMAKE_SYSTEM_NAME MATCHES "OS390")
129-
set(ZOSLIB_FILES "zOSLibFunctions.cpp")
130-
#endif()
131-
132128
# FIXME: We are currently guarding AIX headers with _XOPEN_SOURCE=700.
133129
# See llvm/CMakeLists.txt. However, we need _SC_NPROCESSORS_ONLN in
134130
# unistd.h and it is guarded by _ALL_SOURCE, so we remove the _XOPEN_SOURCE
@@ -298,8 +294,6 @@ add_llvm_component_library(LLVMSupport
298294
xxhash.cpp
299295
Z3Solver.cpp
300296

301-
${ZOSLIB_FILES}
302-
303297
${ALLOCATOR_FILES}
304298
$<TARGET_OBJECTS:LLVMSupportBlake3>
305299

@@ -317,6 +311,7 @@ add_llvm_component_library(LLVMSupport
317311
Threading.cpp
318312
Valgrind.cpp
319313
Watchdog.cpp
314+
zOSLibFunctions.cpp
320315

321316
ADDITIONAL_HEADER_DIRS
322317
Unix

llvm/lib/Support/zOSLibFunctions.cpp

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -21,45 +21,45 @@
2121

2222
const char *signalName[] = {
2323
/* 0 */ nullptr,
24-
/* 1 */ "Hangup", // SIGHUP - Posix
25-
/* 2 */ "Interrupt", // SIGINT
26-
/* 3 */ "Aborted", // SIGABRT
27-
/* 4 */ "Illegal instruction", // SIGILL
28-
/* 5 */ "Polling event", // SIGPOLL
29-
/* 6 */ "Socket data available", // SIGURG
30-
/* 7 */ "Stopped (signal)", // SIGSTOP - Posix
31-
/* 8 */ "Floating point exception", // SIGFPE
32-
/* 9 */ "Killed", // SIGKILL - Posix
33-
/* 10 */ "Bus error", // SIGBUS
34-
/* 11 */ "Segmentation fault", // SIGSEGV
35-
/* 12 */ "Bad system call", // SIGSYS
36-
/* 13 */ "Broken pipe", // SIGPIPE - Posix
37-
/* 14 */ "Alarm clock", // SIGALRM - Posix
38-
/* 15 */ "Terminated", // SIGTERM
39-
/* 16 */ "User defined signal 1", // SIGUSR1
40-
/* 17 */ "User defined signal 2", // SIGUSR2
41-
/* 18 */ "Abend", // SIGABND
42-
/* 19 */ "Continued", // SIGCONT - Posix
43-
/* 20 */ "Child exited", // SIGCHLD - Posix
44-
/* 21 */ "Stopped (tty input)", // SIGTTIN - Posix
45-
/* 22 */ "Stopped (tty output)", // SIGTTOU - Posix
46-
/* 23 */ "I/O complete", // SIGIO
47-
/* 24 */ "Quit", // SIGQUIT - Posix
48-
/* 25 */ "Stopped", // SIGTSTP - Posix
49-
/* 26 */ "Trace/breakpoint trap", // SIGTRAP
50-
/* 27 */ "I/O error", // SIGIOERR
51-
/* 28 */ "Window changed", // SIGWINCH
52-
/* 29 */ "CPU time limit exceeded", // SIGXCPU
53-
/* 30 */ "File size limit exceeded", // SIGXFSZ
54-
/* 31 */ "Virtual timer expired", // SIGVTALRM
55-
/* 32 */ "Profiling timer expired",
56-
/* 33 */ "OMVS subsystem shutdown", // SIGDANGER
57-
/* 34 */ "Thread stop", // SIGTHSTOP
58-
/* 35 */ "Thread resume", // SIGTHCONT
24+
/* 1 */ "Hangup", // SIGHUP
25+
/* 2 */ "Interrupt", // SIGINT
26+
/* 3 */ "Aborted", // SIGABRT
27+
/* 4 */ "Illegal instruction", // SIGILL
28+
/* 5 */ "Polling event", // SIGPOLL
29+
/* 6 */ "Socket data available", // SIGURG
30+
/* 7 */ "Stopped (signal)", // SIGSTOP
31+
/* 8 */ "Floating point exception", // SIGFPE
32+
/* 9 */ "Killed", // SIGKILL
33+
/* 10 */ "Bus error", // SIGBUS
34+
/* 11 */ "Segmentation fault", // SIGSEGV
35+
/* 12 */ "Bad system call", // SIGSYS
36+
/* 13 */ "Broken pipe", // SIGPIPE
37+
/* 14 */ "Alarm clock", // SIGALRM
38+
/* 15 */ "Terminated", // SIGTERM
39+
/* 16 */ "User defined signal 1", // SIGUSR1
40+
/* 17 */ "User defined signal 2", // SIGUSR2
41+
/* 18 */ "Abend", // SIGABND
42+
/* 19 */ "Continued", // SIGCONT
43+
/* 20 */ "Child exited", // SIGCHLD
44+
/* 21 */ "Stopped (tty input)", // SIGTTIN
45+
/* 22 */ "Stopped (tty output)", // SIGTTOU
46+
/* 23 */ "I/O complete", // SIGIO
47+
/* 24 */ "Quit", // SIGQUIT
48+
/* 25 */ "Stopped", // SIGTSTP
49+
/* 26 */ "Trace/breakpoint trap", // SIGTRAP
50+
/* 27 */ "I/O error", // SIGIOERR
51+
/* 28 */ "Window changed", // SIGWINCH
52+
/* 29 */ "CPU time limit exceeded", // SIGXCPU
53+
/* 30 */ "File size limit exceeded", // SIGXFSZ
54+
/* 31 */ "Virtual timer expired", // SIGVTALRM
55+
/* 32 */ "Profiling timer expired", // SIGPROF
56+
/* 33 */ "OMVS subsystem shutdown", // SIGDANGER
57+
/* 34 */ "Thread stop", // SIGTHSTOP
58+
/* 35 */ "Thread resume", // SIGTHCONT
5959
/* 36 */ nullptr,
60-
/* 37 */ "Toggle syscall trace", // SIGTRACE
61-
/* 38 */ nullptr, // SIGDCE
62-
/* 39 */ "System dump", // SIGDUMP - Posix
60+
/* 37 */ "Toggle syscall trace", // SIGTRACE
61+
/* 38 */ nullptr, // SIGDCE
62+
/* 39 */ "System dump", // SIGDUMP
6363
};
6464

6565
// z/OS Unix System Services does not have strsignal() support, so the

0 commit comments

Comments
 (0)