From: Chris Lattner Date: Thu, 19 Feb 2004 20:03:08 +0000 (+0000) Subject: Add a new function X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9717ee9e6c4bc8d71561d46b6914dc0ae300bbc3;p=oota-llvm.git Add a new function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11630 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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