diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-18 19:53:34 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-18 19:53:34 +0000 |
| commit | 67f206acc7640f983ceaa092229696e3f75a6d57 (patch) | |
| tree | de90a0837869816c3fbac23629207840d513e732 /llvm/include/Support/Signals.h | |
| parent | 1ce991d6b9a28b97bd92dc3e1b264ccd632e2fca (diff) | |
| download | bcm5719-llvm-67f206acc7640f983ceaa092229696e3f75a6d57.tar.gz bcm5719-llvm-67f206acc7640f983ceaa092229696e3f75a6d57.zip | |
New api for signal handling for LLVM tools
llvm-svn: 2301
Diffstat (limited to 'llvm/include/Support/Signals.h')
| -rw-r--r-- | llvm/include/Support/Signals.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/include/Support/Signals.h b/llvm/include/Support/Signals.h new file mode 100644 index 00000000000..34e55b651f7 --- /dev/null +++ b/llvm/include/Support/Signals.h @@ -0,0 +1,18 @@ +//===- Support/Signals.h - Signal Handling support ---------------*- C++ -*--=// +// +// This file defines some helpful functions for dealing with the possibility of +// unix signals occuring while your program is running. +// +//===----------------------------------------------------------------------===// + +#ifndef SUPPORT_SIGNALS_H +#define SUPPORT_SIGNALS_H + +#include <string> + +// RemoveFileOnSignal - This function registers signal handlers to ensure that +// if a signal gets delivered that the named file is removed. +// +void RemoveFileOnSignal(const std::string &Filename); + +#endif |

