Lines Matching defs:handler
65 void llvm::install_fatal_error_handler(fatal_error_handler_t handler,
70 assert(!ErrorHandler && "Error handler already registered!\n");
71 ErrorHandler = handler;
92 llvm::fatal_error_handler_t handler = nullptr;
95 // Only acquire the mutex while reading the handler, so as not to invoke a
100 handler = ErrorHandler;
104 if (handler) {
105 handler(handlerData, Reason.str().c_str(), GenCrashDiag);
129 void llvm::install_bad_alloc_error_handler(fatal_error_handler_t handler,
135 "Bad alloc error handler already registered!\n");
136 BadAllocErrorHandler = handler;
152 // Only acquire the mutex while reading the handler, so as not to invoke a
163 llvm_unreachable("bad alloc handler should not return");
170 // Don't call the normal error handler. It may allocate memory. Directly write
182 // Do not set custom new handler if exceptions are enabled. In this case OOM
187 // Causes crash on allocation failure. It is called prior to the handler set by
193 // Installs new handler that causes crash on allocation failure. It is called by
199 "new-handler already installed");
224 LLVMFatalErrorHandler handler =
226 handler(reason);