mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 03:28:31 +00:00
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
This commit is contained in:
parent
bc884fd9f7
commit
35a1e9414d
@ -433,6 +433,12 @@ void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler);
|
|||||||
*/
|
*/
|
||||||
void LLVMResetFatalErrorHandler(void);
|
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
|
* @defgroup LLVMCCoreContext Contexts
|
||||||
*
|
*
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "llvm/Support/ThreadLocal.h"
|
#include "llvm/Support/ThreadLocal.h"
|
||||||
#include "llvm/Support/Watchdog.h"
|
#include "llvm/Support/Watchdog.h"
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
|
#include "llvm-c/Core.h"
|
||||||
|
|
||||||
#ifdef HAVE_CRASHREPORTERCLIENT_H
|
#ifdef HAVE_CRASHREPORTERCLIENT_H
|
||||||
#include <CrashReporterClient.h>
|
#include <CrashReporterClient.h>
|
||||||
@ -147,3 +148,7 @@ void PrettyStackTraceProgram::print(raw_ostream &OS) const {
|
|||||||
OS << ArgV[i] << ' ';
|
OS << ArgV[i] << ' ';
|
||||||
OS << '\n';
|
OS << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LLVMDisablePrettyStackTrace() {
|
||||||
|
DisablePrettyStackTrace = true;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user