mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 11:17:31 +00:00
Moved header from include/Support/ to include/llvm/System
llvm-svn: 13810
This commit is contained in:
parent
fa8fd150ca
commit
04dd3fe76d
32
include/llvm/System/Signals.h
Normal file
32
include/llvm/System/Signals.h
Normal file
@ -0,0 +1,32 @@
|
||||
//===- llvm/System/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 LLVM_SYSTEM_SIGNALS_H
|
||||
#define LLVM_SYSTEM_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);
|
||||
|
||||
/// PrintStackTraceOnErrorSignal - When an error signal (such as SIBABRT or
|
||||
/// SIGSEGV) is delivered to the process, print a stack trace and then exit.
|
||||
void PrintStackTraceOnErrorSignal();
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user