#include #include #include #include ">

LLVM: lib/Support/ErrorHandling.cpp File Reference (original) (raw)

#include "[llvm/Support/ErrorHandling.h](llvm%5F2Support%5F2ErrorHandling%5F8h%5Fsource.html)"
#include "[llvm-c/ErrorHandling.h](llvm-c%5F2ErrorHandling%5F8h%5Fsource.html)"
#include "[llvm/ADT/SmallVector.h](SmallVector%5F8h%5Fsource.html)"
#include "[llvm/ADT/Twine.h](Twine%5F8h%5Fsource.html)"
#include "llvm/Config/config.h"
#include "llvm/Config/llvm-config.h"
#include "[llvm/Support/Debug.h](Support%5F2Debug%5F8h%5Fsource.html)"
#include "[llvm/Support/Errc.h](Errc%5F8h%5Fsource.html)"
#include "[llvm/Support/Errno.h](Errno%5F8h%5Fsource.html)"
#include "[llvm/Support/Error.h](llvm%5F2Support%5F2Error%5F8h%5Fsource.html)"
#include "[llvm/Support/Process.h](Process%5F8h%5Fsource.html)"
#include "[llvm/Support/Signals.h](Signals%5F8h%5Fsource.html)"
#include "[llvm/Support/Threading.h](Threading%5F8h%5Fsource.html)"
#include "[llvm/Support/WindowsError.h](WindowsError%5F8h%5Fsource.html)"
#include "[llvm/Support/raw_ostream.h](raw%5F%5Fostream%5F8h%5Fsource.html)"
#include <cassert>
#include <cstdlib>
#include <mutex>
#include <new>
#include <unistd.h>

Go to the source code of this file.

Functions
static bool write_retry (int fd, const char *buf, size_t count)
static void out_of_memory_new_handler ()
static void bindingsErrorHandler (void *user_data, const char *reason, bool gen_crash_diag)
void LLVMInstallFatalErrorHandler (LLVMFatalErrorHandler Handler)
Install a fatal error handler.
void LLVMResetFatalErrorHandler ()
Reset the fatal error handler.

bindingsErrorHandler()

void bindingsErrorHandler ( void * user_data, const char * reason, bool gen_crash_diag ) static

out_of_memory_new_handler()

void out_of_memory_new_handler ( ) static

write_retry()

bool write_retry ( int fd, const char * buf, size_t count ) static

BadAllocErrorHandler

BadAllocErrorHandlerUserData

void* BadAllocErrorHandlerUserData = nullptr static

ErrorHandler

ErrorHandlerUserData

void* ErrorHandlerUserData = nullptr static