From 9717ee9e6c4bc8d71561d46b6914dc0ae300bbc3 Mon Sep 17 00:00:00 2001 From: Chris Lattner <sabre@nondot.org> Date: Thu, 19 Feb 2004 20:03:08 +0000 Subject: [PATCH] Add a new function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11630 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/Signals.h | 3 +++ include/llvm/System/Signals.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/Support/Signals.h b/include/Support/Signals.h index dff849cfbb0..211cf111be2 100644 --- a/include/Support/Signals.h +++ b/include/Support/Signals.h @@ -24,6 +24,9 @@ namespace llvm { /// 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 diff --git a/include/llvm/System/Signals.h b/include/llvm/System/Signals.h index dff849cfbb0..211cf111be2 100644 --- a/include/llvm/System/Signals.h +++ b/include/llvm/System/Signals.h @@ -24,6 +24,9 @@ namespace llvm { /// 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