LLVM 19.0.0git
Public Attributes | List of all members
llvm::orc::shared::detail::SPSSerializableError Struct Reference

Helper type for serializing Errors. More...

#include "llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h"

Public Attributes

bool HasError = false
std::string ErrMsg

Detailed Description

Helper type for serializing Errors.

llvm::Errors are move-only, and not inspectable except by consuming them. This makes them unsuitable for direct serialization via SPSSerializationTraits, which needs to inspect values twice (once to determine the amount of space to reserve, and then again to serialize).

The SPSSerializableError type is a helper that can be constructed from an llvm::Error, but inspected more than once.

Definition at line 602 of file SimplePackedSerialization.h.

Member Data Documentation

◆ ErrMsg

std::string llvm::orc::shared::detail::SPSSerializableError::ErrMsg

◆ HasError

bool llvm::orc::shared::detail::SPSSerializableError::HasError = false

The documentation for this struct was generated from the following file: