Go to file
Zachary Turner 29365da0e8 Delete the custom implementation of signal() on Windows.
The Windows SDK provides a version of signal() that is much more
limited compared to other platforms.  It only supports about 5-6
signal values.  LLDB uses signals for a number of things, most
notably to handle Ctrl+C so we can gracefully shut down.  The
portability solution to this on Windows has been to provide a
hand-rolled implementation of `signal` using the name `signal`
so that you could write code that simply calls signal directly
and it would work.

But this introduces a multiply defined symbol with the builtin
version and depending on how you included header files, you could
get yourself into a situation where you had linker errors.  To
make matters worse, it led to a ton of compiler warnings.  Worst
of all though is that this custom implementation of signal was,
in fact, identical for the purposes of handling Ctrl+C as the
builtin implementation of signal.  So it seems to have literally
not been serving any useful purpose.

This patch deletes all the custom signal() functions for Windows,
and includes the signal.h system header, so that any calls to
signal now go to the actual version provided by the Windows SDK.

Differential Revision: http://reviews.llvm.org/D18287

llvm-svn: 263858
2016-03-18 23:47:48 +00:00
clang [TLS on Darwin] use CXX_FAST_TLS calling convention for tls_init. 2016-03-18 23:35:21 +00:00
clang-tools-extra [clang-tidy] Use hasAnyName() instead of matchesName(). 2016-03-18 20:14:35 +00:00
compiler-rt builtins: make __clear_cache work on Linux-ARM 2016-03-18 21:06:06 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Fix ilogb(double) return type 2016-02-24 00:52:15 +00:00
libcxx Missing ATOMIC_*_LOCK_FREE tests 2016-03-18 17:48:58 +00:00
libcxxabi [libcxxabi] Disable cxa_thread_atexit_test if unavailable 2016-03-17 10:00:24 +00:00
libunwind [AArch64] Fix libunwind build when using GNU assembler 2016-02-11 21:22:57 +00:00
lld [ELF] Refactor run of LTO passes into an helper. NFC. 2016-03-18 23:22:40 +00:00
lldb Delete the custom implementation of signal() on Windows. 2016-03-18 23:47:48 +00:00
llgo [llgo] Roll gofrontend forward 2016-03-15 05:36:43 +00:00
llvm [CXX_FAST_TLS] Fix issues in ARM. 2016-03-18 23:44:37 +00:00
openmp Update www/index.html to reflect current status of OpenMP project 2016-03-18 14:50:01 +00:00
polly ScopInfo: Do not generate dependences for i1 values used in affine branches 2016-03-16 23:33:54 +00:00