2016-05-23 18:32:11 +02:00
|
|
|
#ifndef TOOLS_LLVM_DWP_DWPERROR
|
|
|
|
#define TOOLS_LLVM_DWP_DWPERROR
|
|
|
|
|
2016-05-12 21:59:54 +02:00
|
|
|
#include "llvm/Support/Error.h"
|
|
|
|
#include "llvm/Support/ErrorHandling.h"
|
|
|
|
#include <string>
|
2016-05-23 18:32:11 +02:00
|
|
|
|
2016-05-12 21:59:54 +02: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 18:32:11 +02:00
|
|
|
|
|
|
|
#endif
|