Rename RunCallBacksToRun to llvm::sys::RunSignalHandlers
authorYaron Keren <yaron.keren@gmail.com>
Wed, 22 Jul 2015 21:11:17 +0000 (21:11 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Wed, 22 Jul 2015 21:11:17 +0000 (21:11 +0000)
commit27513fc040857fd8a4db6516535a93e42f2b9f36
treee0cc1668b24bf69100c335ba21e9f3a057e10bf4
parenta5fd3fdc5bc73f6620361106e96c7df5ac20e47b
Rename RunCallBacksToRun to llvm::sys::RunSignalHandlers

And expose it in Signals.h, allowing clients to call it directly,
possibly LLVMErrorHandler which currently calls RunInterruptHandlers
but not RunSignalHandlers, thus for example not printing the stack
backtrace on Unixish OSes. On Windows it does happen because
RunInterruptHandlers ends up calling the callbacks as well via
Cleanup(). This difference in behaviour and code structures in
*/Signals.inc should be patched in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242936 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Signals.h
lib/Support/Signals.cpp
lib/Support/Unix/Signals.inc
lib/Support/Windows/Signals.inc