2016-05-24 00:32:11 +08:00
|
|
|
#ifndef TOOLS_LLVM_DWP_DWPERROR
|
|
|
|
#define TOOLS_LLVM_DWP_DWPERROR
|
|
|
|
|
2016-05-13 03:59:54 +08:00
|
|
|
#include "llvm/Support/Error.h"
|
|
|
|
#include "llvm/Support/ErrorHandling.h"
|
|
|
|
#include <string>
|
2016-05-24 00:32:11 +08:00
|
|
|
|
2016-05-13 03:59:54 +08: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-24 00:32:11 +08:00
|
|
|
|
|
|
|
#endif
|