blob: fddb85410d4434ccba1cc4b78eb6440d311a337e [file] [log] [blame]
Reid Spencer3d7a6142004-08-29 19:22:48 +00001//===- Signals.cpp - Signal Handling support --------------------*- C++ -*-===//
Misha Brukman10468d82005-04-21 22:55:34 +00002//
Reid Spencer3d7a6142004-08-29 19:22:48 +00003// The LLVM Compiler Infrastructure
4//
Chris Lattnerf3ebc3f2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Misha Brukman10468d82005-04-21 22:55:34 +00007//
Reid Spencer3d7a6142004-08-29 19:22:48 +00008//===----------------------------------------------------------------------===//
9//
10// This file defines some helpful functions for dealing with the possibility of
11// Unix signals occuring while your program is running.
12//
13//===----------------------------------------------------------------------===//
14
15#include "llvm/System/Signals.h"
Reid Spencer844f3fe2004-12-27 06:16:11 +000016#include "llvm/Config/config.h"
Reid Spencer3d7a6142004-08-29 19:22:48 +000017
18namespace llvm {
19using namespace sys;
20
21//===----------------------------------------------------------------------===//
22//=== WARNING: Implementation here must contain only TRULY operating system
Misha Brukman10468d82005-04-21 22:55:34 +000023//=== independent code.
Reid Spencer3d7a6142004-08-29 19:22:48 +000024//===----------------------------------------------------------------------===//
25
26}
27
28// Include the platform-specific parts of this class.
Reid Spencer844f3fe2004-12-27 06:16:11 +000029#ifdef LLVM_ON_UNIX
Reid Spencerc892a0d2005-01-09 23:29:00 +000030#include "Unix/Signals.inc"
Reid Spencer844f3fe2004-12-27 06:16:11 +000031#endif
32#ifdef LLVM_ON_WIN32
Reid Spencerc892a0d2005-01-09 23:29:00 +000033#include "Win32/Signals.inc"
Reid Spencer844f3fe2004-12-27 06:16:11 +000034#endif
Reid Spencer3d7a6142004-08-29 19:22:48 +000035
Reid Spencer082e2a72006-07-26 16:55:39 +000036DEFINING_FILE_FOR(SystemSignals)