aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/Support/Signals.h3
-rw-r--r--include/llvm/System/Signals.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/include/Support/Signals.h b/include/Support/Signals.h
index dff849cfbb..211cf111be 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 dff849cfbb..211cf111be 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