24 ErrMsg =
"Stream Error: ";
27 ErrMsg +=
"An unspecified error has occurred.";
30 ErrMsg +=
"The stream is too short to perform the requested operation.";
33 ErrMsg +=
"The buffer size is not a multiple of the array element size.";
36 ErrMsg +=
"The specified offset is invalid for the current stream.";
39 ErrMsg +=
"An I/O error occurred on the file system.";
43 if (!Context.
empty()) {
Base class for errors originating when parsing raw PDB files.
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
BinaryStreamError(stream_error_code C)
void log(raw_ostream &OS) const override
Print an error message to an output stream.
StringRef getErrorMessage() const
StringRef - Represent a constant reference to a string, i.e.
constexpr bool empty() const
empty - Check if the string is empty.
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.
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...