LLVM 20.0.0git
DWPError.h
Go to the documentation of this file.
1#ifndef LLVM_DWP_DWPERROR_H
2#define LLVM_DWP_DWPERROR_H
3
6#include <string>
7
8namespace 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} // namespace llvm
22
23#endif // LLVM_DWP_DWPERROR_H
Analysis containing CSE Info
Definition: CSEInfo.cpp:27
raw_pwrite_stream & OS
DWPError(std::string Info)
Definition: DWPError.h:11
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: DWPError.h:13
static char ID
Definition: DWPError.h:16
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: DWPError.h:12
Base class for user error types.
Definition: Error.h:355
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
#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.
Definition: AddressRanges.h:18
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:1873
Implement std::hash so that hash_code can be used in STL containers.
Definition: BitVector.h:858