Add a new function
authorChris Lattner <sabre@nondot.org>
Thu, 19 Feb 2004 20:03:08 +0000 (20:03 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 19 Feb 2004 20:03:08 +0000 (20:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11630 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/Signals.h
include/llvm/System/Signals.h

index dff849cfbb00cdcbc0620e53d6ff63383ed38b40..211cf111be26445bda9564376fa9194c5765f08f 100644 (file)
@@ -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
index dff849cfbb00cdcbc0620e53d6ff63383ed38b40..211cf111be26445bda9564376fa9194c5765f08f 100644 (file)
@@ -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