27 const char*
name()
const noexcept override;
28 std::
string message(
int ev)
const override;
36 std::string _object_error_category::message(
int EV)
const {
40 return "No object file for requested architecture";
42 return "The file was not recognized as a valid object file";
44 return "Invalid data was encountered while parsing the file";
46 return "The end of the file was unexpectedly encountered";
48 return "String table must end with a null terminator";
50 return "Invalid section index";
52 return "Bitcode section not found in object file";
54 return "Invalid symbol index";
60 void BinaryError::anchor() {}
92 return Error(std::move(M));
This class represents lattice values for constants.
GenericBinaryError(Twine Msg)
std::error_code make_error_code(object_error e)
void log(raw_ostream &OS) const override
const std::error_category & object_category()
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Error isNotObjectErrorInvalidFileType(llvm::Error Err)
isNotObjectErrorInvalidFileType() is used when looping through the children of an archive after calli...
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
static ManagedStatic< _object_error_category > error_category
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
static ErrorSuccess success()
Create a success value.
Lightweight error class with error context and mandatory checking.
Error handleErrors(Error E, HandlerTs &&... Hs)
Pass the ErrorInfo(s) contained in E to their respective handlers.
This class implements an extremely fast bulk output stream that can only output to a stream...
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on...