mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
9717ee9e6c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11630 91177308-0d34-0410-b5e6-96231b3b80d8
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
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);
|
|
|
|
/// 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
|