Add a new 'AddSignalHandler' function to Signals.h that allows
authorChris Lattner <sabre@nondot.org>
Wed, 4 Mar 2009 21:21:36 +0000 (21:21 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Mar 2009 21:21:36 +0000 (21:21 +0000)
commit35033a5876aa27ea5729bc29b41bb4460a303cad
treed93d7e300969a03a543dd4ae75bdabbc0a7608cf
parentfd0339933b907a5118efdac6d7dc78ac92c0a8c8
Add a new 'AddSignalHandler' function to Signals.h that allows
arbitrary functions to be run when a crash happens.  Delete
RemoveDirectoryOnSignal as it is dead and has never had clients.

Change PrintStackTraceOnErrorSignal to be implemented in terms of
AddSignalHandler.

I updated the Win32 versions of these APIs, but can't test them.
If there are any problems, I'd be happy to fix them as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66072 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/System/Signals.h
lib/System/Unix/Signals.inc
lib/System/Win32/Signals.inc