LLVM  12.0.0git
Go to the documentation of this file.
5 using namespace llvm;
6 using namespace llvm::pdb;
8 // FIXME: This class is only here to support the transition to llvm::Error. It
9 // will be removed once this transition is complete. Clients should prefer to
10 // deal with the Error value directly, rather than converting to error_code.
12 public:
13  const char *name() const noexcept override { return "llvm.pdb.dia"; }
14  std::string message(int Condition) const override {
15  switch (static_cast<dia_error_code>(Condition)) {
17  return "Failed to connect to DIA at runtime. Verify that Visual Studio "
18  "is properly installed, or that msdiaXX.dll is in your PATH.";
20  return "Unable to load PDB. The file has an unrecognized format.";
22  return "The parameter is incorrect.";
24  return "Unable to load the PDB or EXE, because it is already loaded.";
26  return "The PDB file and the EXE file do not match.";
28  return "An unknown error has occurred.";
29  }
30  llvm_unreachable("Unrecognized DIAErrorCode");
31  }
32 };
37 char DIAError::ID;
This class represents lattice values for constants.
Definition: AllocatorList.h:23
static llvm::ManagedStatic< DIAErrorCategory > DIACategory
Definition: DIAError.cpp:34
const std::error_category & DIAErrCategory()
Definition: DIAError.cpp:35
static char ID
Definition: DIAError.h:46
static ManagedStatic< _object_error_category > error_category
Definition: Error.cpp:76
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
std::string message(int Condition) const override
Definition: DIAError.cpp:14
const char * name() const noexcept override
Definition: DIAError.cpp:13
aarch64 promote const
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on...
Definition: ManagedStatic.h:83