diff options
Diffstat (limited to 'llvm/tools/llvm-dwp/DWPError.h')
-rw-r--r-- | llvm/tools/llvm-dwp/DWPError.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/tools/llvm-dwp/DWPError.h b/llvm/tools/llvm-dwp/DWPError.h new file mode 100644 index 00000000000..e0dd4edc8a8 --- /dev/null +++ b/llvm/tools/llvm-dwp/DWPError.h @@ -0,0 +1,17 @@ +#include "llvm/Support/Error.h" +#include "llvm/Support/ErrorHandling.h" +#include <string> +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; +}; +} |