summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorFilip Pizlo <fpizlo@apple.com>2013-11-03 00:29:47 +0000
committerFilip Pizlo <fpizlo@apple.com>2013-11-03 00:29:47 +0000
commit9f50ccd1a364b27a2f0e18040c517e95e53794cc (patch)
treeb572f32afab46d20f3c64b954cc1c68a71f36ba1 /llvm/include/llvm-c
parentf1b0baeb21d1f3dd9f08c9f2337729843672f4ac (diff)
downloadbcm5719-llvm-9f50ccd1a364b27a2f0e18040c517e95e53794cc.tar.gz
bcm5719-llvm-9f50ccd1a364b27a2f0e18040c517e95e53794cc.zip
When LLVM is embedded in a larger application, it's not OK for LLVM to intercept crashes. LLVM already has
the ability to disable this functionality. This patch exposes it via the C API. llvm-svn: 193937
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 690ffa9fdc4..47d566c03e2 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -434,6 +434,12 @@ 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.
+ */
+void LLVMDisablePrettyStackTrace(void);
+
+/**
* @defgroup LLVMCCoreContext Contexts
*
* Contexts are execution states for the core LLVM IR system.
OpenPOWER on IntegriCloud