|
LLVM 22.0.0git
|
#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.
Namespaces | |
| namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations. | |
Functions | |
| ErrorErrorCategory & | getErrorErrorCat () |
| LLVM_ABI void | llvm::logAllUnhandledErrors (Error E, raw_ostream &OS, Twine ErrorBanner={}) |
| Log all errors (if any) in E to OS. | |
| LLVM_ABI std::string | llvm::toString (Error E) |
| Write all error messages (if any) in E to a string. | |
| LLVM_ABI std::string | llvm::toStringWithoutConsuming (const Error &E) |
| Like toString(), but does not consume the error. | |
| LLVM_ABI std::error_code | llvm::inconvertibleErrorCode () |
| The value returned by this function can be returned from convertToErrorCode for Error values where no sensible translation to std::error_code exists. | |
| LLVM_ABI Error | llvm::errorCodeToError (std::error_code EC) |
| Helper for converting an std::error_code to a Error. | |
| LLVM_ABI std::error_code | llvm::errorToErrorCode (Error Err) |
| Helper for converting an ECError to a std::error_code. | |
| LLVM_ABI Error | llvm::createStringError (std::string &&Msg, std::error_code EC) |
| LLVM_ABI void | llvm::report_fatal_error (Error Err, bool gen_crash_diag=true) |
| LLVM_ABI void | llvm::reportFatalInternalError (Error Err) |
| Report a fatal error that indicates a bug in LLVM. | |
| LLVM_ABI void | llvm::reportFatalUsageError (Error Err) |
| Report a fatal error that does not indicate a bug in LLVM. | |
| 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. | |
| char * | LLVMGetErrorMessage (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. | |