22 #include <llvm/Support/ErrorHandling.h>
76 llvm::remove_bad_alloc_error_handler();
77 llvm::remove_fatal_error_handler();
101 llvm::remove_bad_alloc_error_handler();
102 llvm::remove_fatal_error_handler();
117 (
errcode(ERRCODE_OUT_OF_MEMORY),
128 (
errcode(ERRCODE_OUT_OF_MEMORY),
130 errdetail(
"While in LLVM: %s", reason)));
139 (
errcode(ERRCODE_OUT_OF_MEMORY),
140 errmsg(
"fatal llvm error: %s", reason)));
#define Assert(condition)
int errdetail(const char *fmt,...)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
void llvm_enter_fatal_on_oom(void)
static std::new_handler old_new_handler
bool llvm_in_fatal_on_oom(void)
static void fatal_system_new_handler(void)
static void fatal_llvm_new_handler(void *user_data, const char *reason, bool gen_crash_diag)
static int fatal_new_handler_depth
void llvm_assert_in_fatal_section(void)
void llvm_reset_after_error(void)
void llvm_leave_fatal_on_oom(void)
static void fatal_llvm_error_handler(void *user_data, const char *reason, bool gen_crash_diag)