aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-18 19:53:34 +0000
committerChris Lattner <sabre@nondot.org>2002-04-18 19:53:34 +0000
commit922a392565130d658f34abb65f5b710e600a1a83 (patch)
tree892a6868dcac91b721d24de204a10d2514936fe3 /include
parent68d892dc0d503236099e43d39dda50556d394dbb (diff)
downloadexternal_llvm-922a392565130d658f34abb65f5b710e600a1a83.zip
external_llvm-922a392565130d658f34abb65f5b710e600a1a83.tar.gz
external_llvm-922a392565130d658f34abb65f5b710e600a1a83.tar.bz2
New api for signal handling for LLVM tools
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/Support/Signals.h18
-rw-r--r--include/llvm/System/Signals.h18
2 files changed, 36 insertions, 0 deletions
diff --git a/include/Support/Signals.h b/include/Support/Signals.h
new file mode 100644
index 0000000..34e55b6
--- /dev/null
+++ b/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
diff --git a/include/llvm/System/Signals.h b/include/llvm/System/Signals.h
new file mode 100644
index 0000000..34e55b6
--- /dev/null
+++ b/include/llvm/System/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