LLVM  14.0.0git
DWPError.h
Go to the documentation of this file.
1 #ifndef LLVM_DWP_DWPERROR_H
2 #define LLVM_DWP_DWPERROR_H
3 
4 #include "llvm/Support/Error.h"
6 #include <string>
7 
8 namespace llvm {
9 class DWPError : public ErrorInfo<DWPError> {
10 public:
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 
18 private:
19  std::string Info;
20 };
21 } // namespace llvm
22 
23 #endif // LLVM_DWP_DWPERROR_H
llvm::DWPError
Definition: DWPError.h:9
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
ErrorHandling.h
Error.h
llvm::DWPError::DWPError
DWPError(std::string Info)
Definition: DWPError.h:11
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
Info
Analysis containing CSE Info
Definition: CSEInfo.cpp:27
llvm::DWPError::log
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: DWPError.h:12
llvm::move
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:1607
llvm::ErrorInfo
Base class for user error types.
Definition: Error.h:349
llvm::DWPError::ID
static char ID
Definition: DWPError.h:16
llvm_unreachable
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Definition: ErrorHandling.h:136
std
Definition: BitVector.h:838
llvm::DWPError::convertToErrorCode
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: DWPError.h:13