mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 13:36:28 +00:00
New api for signal handling for LLVM tools
llvm-svn: 2301
This commit is contained in:
parent
8f81cd7da6
commit
01ad1e2383
18
include/Support/Signals.h
Normal file
18
include/Support/Signals.h
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user