20class CodeViewErrorCategory :
public std::error_category {
22 const char *
name()
const noexcept
override {
return "llvm.codeview"; }
23 std::string message(
int Condition)
const override {
25 case cv_error_code::unspecified:
26 return "An unknown CodeView error has occurred.";
27 case cv_error_code::insufficient_buffer:
28 return "The buffer is not large enough to read the requested number of "
30 case cv_error_code::corrupt_record:
31 return "The CodeView record is corrupted.";
32 case cv_error_code::no_records:
33 return "There are no records.";
34 case cv_error_code::operation_unsupported:
35 return "The requested operation is not supported.";
36 case cv_error_code::unknown_member_record:
37 return "The member record is of an unknown type.";
45 static CodeViewErrorCategory CodeViewErrCategory;
46 return CodeViewErrCategory;
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
const std::error_category & CVErrorCategory()
This is an optimization pass for GlobalISel generic memory operations.