DWPError.h 504 B

1234567891011121314151617181920212223
  1. #ifndef TOOLS_LLVM_DWP_DWPERROR
  2. #define TOOLS_LLVM_DWP_DWPERROR
  3. #include "llvm/Support/Error.h"
  4. #include "llvm/Support/ErrorHandling.h"
  5. #include <string>
  6. namespace llvm {
  7. class DWPError : public ErrorInfo<DWPError> {
  8. public:
  9. DWPError(std::string Info) : Info(std::move(Info)) {}
  10. void log(raw_ostream &OS) const override { OS << Info; }
  11. std::error_code convertToErrorCode() const override {
  12. llvm_unreachable("Not implemented");
  13. }
  14. static char ID;
  15. private:
  16. std::string Info;
  17. };
  18. }
  19. #endif