From 35a1e9414d48f52093679b4723578192cceeb3c5 Mon Sep 17 00:00:00 2001 From: Filip Pizlo Date: Sun, 3 Nov 2013 00:29:47 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193937 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Core.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/llvm-c') diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 690ffa9..47d566c 100644 --- a/include/llvm-c/Core.h +++ b/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. -- cgit v1.1