LLVM: include/llvm/Support/BinaryStreamError.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9#ifndef LLVM_SUPPORT_BINARYSTREAMERROR_H
10#define LLVM_SUPPORT_BINARYSTREAMERROR_H
11
15
16#include
17
18namespace llvm {
26
27
29public:
34
37
39
41
42private:
43 std::string ErrMsg;
45};
46}
47
48#endif
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
static char ID
Definition BinaryStreamError.h:30
BinaryStreamError(stream_error_code C)
void log(raw_ostream &OS) const override
Print an error message to an output stream.
StringRef getErrorMessage() const
stream_error_code getErrorCode() const
Definition BinaryStreamError.h:40
Base class for user error types.
StringRef - Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
stream_error_code
Definition BinaryStreamError.h:19
@ invalid_array_size
Definition BinaryStreamError.h:22
@ filesystem_error
Definition BinaryStreamError.h:24
@ unspecified
Definition BinaryStreamError.h:20
@ stream_too_short
Definition BinaryStreamError.h:21
@ invalid_offset
Definition BinaryStreamError.h:23