diff options
author | Filip Pizlo <fpizlo@apple.com> | 2013-11-04 02:22:25 +0000 |
---|---|---|
committer | Filip Pizlo <fpizlo@apple.com> | 2013-11-04 02:22:25 +0000 |
commit | c10ca903243f97cbc8014f20c64f1318a57a2936 (patch) | |
tree | 9317a3b5f29d7d0765a4e249decd233d495e566c /llvm/include/llvm-c | |
parent | 2002bfec3ba12133cf4f5ce09cef6d99621cf9d0 (diff) | |
download | bcm5719-llvm-c10ca903243f97cbc8014f20c64f1318a57a2936.tar.gz bcm5719-llvm-c10ca903243f97cbc8014f20c64f1318a57a2936.zip |
Make the pretty stack trace be an opt-in, rather than opt-out, facility. Enable pretty
stack traces by default if you use PrettyStackTraceProgram, so that existing LLVM-based
tools will continue to get it without any changes.
llvm-svn: 193971
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/Core.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 88204ef33ce..e18c77c5d72 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -434,13 +434,11 @@ void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler); void LLVMResetFatalErrorHandler(void); /** - * Disable LLVM's built-in stack trace code. This must be called before any - * other LLVM APIs; otherwise the results are undefined. - * - * FIXME: This API should be replaced by a LLVMEnablePrettyStackTrace() - * function; the default should be that pretty stack traces are disabled. + * Enable LLVM's built-in stack trace code. This intercepts the OS's crash + * signals and prints which component of LLVM you were in at the time if the + * crash. */ -void LLVMDisablePrettyStackTrace(void); +void LLVMEnablePrettyStackTrace(void); /** * @defgroup LLVMCCoreContext Contexts |