llvm_sys/
error_handling.rs

1pub type LLVMFatalErrorHandler = Option<extern "C" fn(Reason: *const ::libc::c_char)>;
2
3extern "C" {
4    /// Install a fatal error handler.
5    ///
6    /// LLVM will call `exit(1)` if it detects a fatal error. A callback
7    /// registered with this function will be invoked before the program is
8    /// exited.
9    pub fn LLVMInstallFatalErrorHandler(Handler: LLVMFatalErrorHandler);
10    /// Reset fatal error handling to the default.
11    pub fn LLVMResetFatalErrorHandler();
12    /// Enable LLVM's build-in stack trace code.
13    ///
14    /// This intercepts the OS's crash signals and prints which component
15    /// of LLVM you were in at the time of the crash.
16    pub fn LLVMEnablePrettyStackTrace();
17}