19class PDBErrorCategory :
public std::error_category {
21 const char *
name()
const noexcept
override {
return "llvm.pdb"; }
22 std::string message(
int Condition)
const override {
24 case pdb_error_code::unspecified:
25 return "An unknown error has occurred.";
26 case pdb_error_code::dia_sdk_not_present:
27 return "LLVM was not compiled with support for DIA. This usually means "
28 "that you are not using MSVC, or your Visual Studio "
29 "installation is corrupt.";
30 case pdb_error_code::dia_failed_loading:
31 return "DIA is only supported when using MSVC.";
32 case pdb_error_code::invalid_utf8_path:
33 return "The PDB file path is an invalid UTF8 sequence.";
34 case pdb_error_code::signature_out_of_date:
35 return "The signature does not match; the file(s) might be out of date.";
36 case pdb_error_code::no_matching_pch:
37 return "No matching precompiled header could be located.";
45 static PDBErrorCategory PDBCategory;
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
const std::error_category & PDBErrCategory()
This is an optimization pass for GlobalISel generic memory operations.