summaryrefslogtreecommitdiff
path: root/include/llvm-c/Core.h
diff options
context:
space:
mode:
authorFilip Pizlo <fpizlo@apple.com>2013-11-04 02:22:25 +0000
committerFilip Pizlo <fpizlo@apple.com>2013-11-04 02:22:25 +0000
commitfa0da86a59c502bfbfa01d3d5f694f18f6e8a717 (patch)
tree770dbb27d0618c91eca701bde217d71e3dd33e64 /include/llvm-c/Core.h
parent4ebe64ae7ec729b29964b355face33af0c4ce424 (diff)
downloadllvm-fa0da86a59c502bfbfa01d3d5f694f18f6e8a717.tar.gz
llvm-fa0da86a59c502bfbfa01d3d5f694f18f6e8a717.tar.bz2
llvm-fa0da86a59c502bfbfa01d3d5f694f18f6e8a717.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c/Core.h')
-rw-r--r--include/llvm-c/Core.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index 88204ef33c..e18c77c5d7 100644
--- a/include/llvm-c/Core.h
+++ b/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