2016-05-23 16:32:11 +00:00
|
|
|
#ifndef TOOLS_LLVM_DWP_DWPERROR
|
|
|
|
#define TOOLS_LLVM_DWP_DWPERROR
|
|
|
|
|
2016-05-12 19:59:54 +00:00
|
|
|
#include "llvm/Support/Error.h"
|
|
|
|
#include "llvm/Support/ErrorHandling.h"
|
|
|
|
#include <string>
|
2016-05-23 16:32:11 +00:00
|
|
|
|
2016-05-12 19:59:54 +00:00
|
|
|
namespace llvm {
|
|
|
|
class DWPError : public ErrorInfo<DWPError> {
|
|
|
|
public:
|
|
|
|
DWPError(std::string Info) : Info(std::move(Info)) {}
|
|
|
|
void log(raw_ostream &OS) const override { OS << Info; }
|
|
|
|
std::error_code convertToErrorCode() const override {
|
|
|
|
llvm_unreachable("Not implemented");
|
|
|
|
}
|
|
|
|
static char ID;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string Info;
|
|
|
|
};
|
|
|
|
}
|
2016-05-23 16:32:11 +00:00
|
|
|
|
|
|
|
#endif
|