summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-07-22 21:11:17 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-07-22 21:11:17 +0000
commit2873810c6f81a288bcb53b0da9af4c21858a4f20 (patch)
tree52697873c633ccba366ce5b9c4df4d10a9de4b9e /llvm/lib/Support/Unix
parent3da0acdcbce65501ca6ebbda7e62c7157288619a (diff)
downloadbcm5719-llvm-2873810c6f81a288bcb53b0da9af4c21858a4f20.tar.gz
bcm5719-llvm-2873810c6f81a288bcb53b0da9af4c21858a4f20.zip
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. llvm-svn: 242936
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Signals.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index caccf7b377c..2332db58bfc 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/lib/Support/Unix/Signals.inc
@@ -201,7 +201,7 @@ static RETSIGTYPE SignalHandler(int Sig) {
}
// Otherwise if it is a fault (like SEGV) run any handler.
- RunCallBacksToRun();
+ llvm::sys::RunSignalHandlers();
#ifdef __s390__
// On S/390, certain signals are delivered with PSW Address pointing to
OpenPOWER on IntegriCloud