LLVM 23.0.0git
Error.cpp File Reference
#include "llvm/Support/Error.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/ErrorHandling.h"
#include <system_error>
#include "llvm/Testing/Support/Error.h"

Go to the source code of this file.

Functions

static ErrorErrorCategory & getErrorErrorCat ()
LLVMErrorTypeId LLVMGetErrorTypeId (LLVMErrorRef Err)
 Returns the type id for the given error instance, which must be a failure value (i.e.
void LLVMConsumeError (LLVMErrorRef Err)
 Dispose of the given error without handling it.
void LLVMCantFail (LLVMErrorRef Err)
 Report a fatal error if Err is a failure value.
charLLVMGetErrorMessage (LLVMErrorRef Err)
 Returns the given string's error message.
void LLVMDisposeErrorMessage (char *ErrMsg)
 Dispose of the given error message.
LLVMErrorTypeId LLVMGetStringErrorTypeId ()
 Returns the type id for llvm StringError.
LLVMErrorRef LLVMCreateStringError (const char *ErrMsg)
 Create a StringError.

Function Documentation

◆ getErrorErrorCat()

ErrorErrorCategory & getErrorErrorCat ( )
static

Definition at line 48 of file Error.cpp.