diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-07-22 21:11:17 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-07-22 21:11:17 +0000 |
commit | 2873810c6f81a288bcb53b0da9af4c21858a4f20 (patch) | |
tree | 52697873c633ccba366ce5b9c4df4d10a9de4b9e /llvm/lib/Support/Signals.cpp | |
parent | 3da0acdcbce65501ca6ebbda7e62c7157288619a (diff) | |
download | llvm-2873810c6f81a288bcb53b0da9af4c21858a4f20.zip llvm-2873810c6f81a288bcb53b0da9af4c21858a4f20.tar.gz llvm-2873810c6f81a288bcb53b0da9af4c21858a4f20.tar.bz2 |
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/Signals.cpp')
-rw-r--r-- | llvm/lib/Support/Signals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Signals.cpp b/llvm/lib/Support/Signals.cpp index 598ef50..2c3560c 100644 --- a/llvm/lib/Support/Signals.cpp +++ b/llvm/lib/Support/Signals.cpp @@ -28,7 +28,7 @@ using namespace sys; static ManagedStatic<std::vector<std::pair<void (*)(void *), void *>>> CallBacksToRun; -void RunCallBacksToRun() { +void sys::RunSignalHandlers() { if (!CallBacksToRun.isConstructed()) return; for (auto &I : *CallBacksToRun) |