blob: 62025ed4caa556ce663f4e8ef8257cceca649db7 [file] [log] [blame]
David Blaikiefd800922016-05-23 16:32:11 +00001#ifndef TOOLS_LLVM_DWP_DWPERROR
2#define TOOLS_LLVM_DWP_DWPERROR
3
David Blaikiebc8397c2016-05-12 19:59:54 +00004#include "llvm/Support/Error.h"
5#include "llvm/Support/ErrorHandling.h"
6#include <string>
David Blaikiefd800922016-05-23 16:32:11 +00007
David Blaikiebc8397c2016-05-12 19:59:54 +00008namespace llvm {
9class DWPError : public ErrorInfo<DWPError> {
10public:
11 DWPError(std::string Info) : Info(std::move(Info)) {}
12 void log(raw_ostream &OS) const override { OS << Info; }
13 std::error_code convertToErrorCode() const override {
14 llvm_unreachable("Not implemented");
15 }
16 static char ID;
17
18private:
19 std::string Info;
20};
21}
David Blaikiefd800922016-05-23 16:32:11 +000022
23#endif