aboutsummaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwp/DWPError.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-06-27 18:34:17 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-06-27 18:34:17 +0000
commitdbb6490749e2bb2a514a8a305b8fadc3495183e6 (patch)
treedd42cfd6d9813d5640a01083bdc0eedcb3f862c2 /llvm/tools/llvm-dwp/DWPError.h
parent483b61a50e7423b063fc26985325f594560b3f7e (diff)
downloadsrc-vendor/llvm-project/release-10.x.tar.gz
src-vendor/llvm-project/release-10.x.zip
llvmorg-10.0.1-rc2-0-g77d76b71d7d.
Notes
Notes: svn path=/vendor/llvm-project/release-10.x/; revision=362703 svn path=/vendor/llvm-project/llvmorg-10.0.1-0-gef32c611aa2/; revision=363400; tag=vendor/llvm-project/llvmorg-10.0.1-0-gef32c611aa2
Diffstat (limited to 'llvm/tools/llvm-dwp/DWPError.h')
-rw-r--r--llvm/tools/llvm-dwp/DWPError.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/tools/llvm-dwp/DWPError.h b/llvm/tools/llvm-dwp/DWPError.h
new file mode 100644
index 000000000000..62025ed4caa5
--- /dev/null
+++ b/llvm/tools/llvm-dwp/DWPError.h
@@ -0,0 +1,23 @@
+#ifndef TOOLS_LLVM_DWP_DWPERROR
+#define TOOLS_LLVM_DWP_DWPERROR
+
+#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;
+};
+}
+
+#endif