1 //===- Support/Signals.h - Signal Handling support --------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines some helpful functions for dealing with the possibility of
11 // unix signals occuring while your program is running.
13 //===----------------------------------------------------------------------===//
15 #ifndef SUPPORT_SIGNALS_H
16 #define SUPPORT_SIGNALS_H
22 /// RemoveFileOnSignal - This function registers signal handlers to ensure
23 /// that if a signal gets delivered that the named file is removed.
25 void RemoveFileOnSignal(const std::string &Filename);
27 } // End llvm namespace