summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/Support/Signals.h18
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
OpenPOWER on IntegriCloud