From f48acd5ecd2616623f441f2922d8b4c637e3cd6c Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 9 Jan 2013 19:42:40 +0000 Subject: Move the internal PrintStackTrace function that is used for llvm::sys::PrintStackTraceOnErrorSignal(), into a new function llvm::sys::PrintStackTrace, so that it's available to clients for logging purposes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171989 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Signals.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/llvm/Support/Signals.h') diff --git a/include/llvm/Support/Signals.h b/include/llvm/Support/Signals.h index 634f4cf76d..f2ca929643 100644 --- a/include/llvm/Support/Signals.h +++ b/include/llvm/Support/Signals.h @@ -38,6 +38,9 @@ namespace sys { /// @brief Print a stack trace if a fatal signal occurs. void PrintStackTraceOnErrorSignal(); + /// \brief Print the stack trace using the given \c FILE object. + void PrintStackTrace(FILE *); + /// AddSignalHandler - Add a function to be called when an abort/kill signal /// is delivered to the process. The handler can have a cookie passed to it /// to identify what instance of the handler it is. -- cgit v1.2.3-18-g5258