LLVM 22.0.0git
DWPError.h
Go to the documentation of this file.
1#ifndef LLVM_DWP_DWPERROR_H
2#define LLVM_DWP_DWPERROR_H
3
7#include <string>
8
9namespace llvm {
10class DWPError : public ErrorInfo<DWPError> {
11public:
12 DWPError(std::string Info) : Info(std::move(Info)) {}
13 void log(raw_ostream &OS) const override { OS << Info; }
14 std::error_code convertToErrorCode() const override {
15 llvm_unreachable("Not implemented");
16 }
17 LLVM_ABI static char ID;
18
19private:
20 std::string Info;
21};
22} // namespace llvm
23
24#endif // LLVM_DWP_DWPERROR_H
#define LLVM_ABI
Definition Compiler.h:213
DWPError(std::string Info)
Definition DWPError.h:12
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition DWPError.h:14
static LLVM_ABI char ID
Definition DWPError.h:17
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition DWPError.h:13
Base class for user error types.
Definition Error.h:354
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition STLExtras.h:1847
Implement std::hash so that hash_code can be used in STL containers.
Definition BitVector.h:851