15 using namespace llvm::codeview;
23 const char *
name()
const noexcept
override {
return "llvm.codeview"; }
25 std::string message(
int Condition)
const override {
26 switch (static_cast<cv_error_code>(Condition)) {
28 return "An unknown error has occurred.";
30 return "The buffer is not large enough to read the requested number of "
33 return "The CodeView record is corrupted.";
35 return "The requested operation is not supported.";
37 return "The member record is of an unknown type.";
55 ErrMsg =
"CodeView Error: ";
58 ErrMsg += EC.message() +
" ";
68 return std::error_code(static_cast<int>(Code), *
Category);
Base class for errors originating when parsing raw PDB files.
static ManagedStatic< _object_error_category > error_category
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
const std::string & getErrorMessage() const
static ManagedStatic< CodeViewErrorCategory > Category
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
void log(raw_ostream &OS) const override
Print an error message to an output stream.
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...
CodeViewError(cv_error_code C)