22 #include <llvm/Support/ErrorHandling.h>
33 #if LLVM_VERSION_MAJOR < 14
37 #if LLVM_VERSION_MAJOR < 14
82 llvm::remove_bad_alloc_error_handler();
83 llvm::remove_fatal_error_handler();
107 llvm::remove_bad_alloc_error_handler();
108 llvm::remove_fatal_error_handler();
123 (
errcode(ERRCODE_OUT_OF_MEMORY),
134 (
errcode(ERRCODE_OUT_OF_MEMORY),
136 errdetail(
"While in LLVM: %s", reason)));
138 #if LLVM_VERSION_MAJOR < 14
154 (
errcode(ERRCODE_OUT_OF_MEMORY),
155 errmsg(
"fatal llvm error: %s", reason)));
158 #if LLVM_VERSION_MAJOR < 14
#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)