David Blaikie | bc8397c | 2016-05-12 19:59:54 +0000 | [diff] [blame] | 1 | #include "llvm/Support/Error.h" |
2 | #include "llvm/Support/ErrorHandling.h" | ||||
3 | #include <string> | ||||
4 | namespace llvm { | ||||
5 | class DWPError : public ErrorInfo<DWPError> { | ||||
6 | public: | ||||
7 | DWPError(std::string Info) : Info(std::move(Info)) {} | ||||
8 | void log(raw_ostream &OS) const override { OS << Info; } | ||||
9 | std::error_code convertToErrorCode() const override { | ||||
10 | llvm_unreachable("Not implemented"); | ||||
11 | } | ||||
12 | static char ID; | ||||
13 | |||||
14 | private: | ||||
15 | std::string Info; | ||||
16 | }; | ||||
17 | } |