mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
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
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user