context/llpcCompiler.cpp
static void FatalErrorHandler(
    void*               userData,       // [in] An argument which will be passed to the installed error handler
    const std::string&  reason,         // Error reason
    bool                gen_crash_diag) // Whether diagnostic should be generated
{
    LLPC_ERRS("LLVM FATAL ERROR:" << reason << "\n");
#if LLPC_ENABLE_EXCEPTION
    throw("LLVM fatal error");
#endif
}
// =====================================================================================================================
// Handler for LLVM fatal error.
Handler for LLVM fatal error.
Handler for LLVM fatal error .
static void FatalErrorHandler(
    void*               userData,       
    const std::string&  reason,         
    bool                gen_crash_diag) 
{
    LLPC_ERRS("LLVM FATAL ERROR:" << reason << "\n");
#if LLPC_ENABLE_EXCEPTION
    throw("LLVM fatal error");
#endif
}
static void FatalErrorHandler ( void * userData , const std :: string & reason , bool gen_crash_diag ) { LLPC_ERRS ( " " << reason << " \n " ) ; #if LLPC_ENABLE_EXCEPTION throw ( " " ) ; #endif }
Handler for LLVM fatal error.
Handler for LLVM fatal error .
// [in] An argument which will be passed to the installed error handler // Error reason // Whether diagnostic should be generated