mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 07:31:39 +00:00
fa545f3641
llvm-svn: 10661
30 lines
944 B
C++
30 lines
944 B
C++
//===- Support/Signals.h - Signal Handling support --------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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>
|
|
|
|
namespace llvm {
|
|
|
|
/// 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);
|
|
|
|
} // End llvm namespace
|
|
|
|
#endif
|