Enum llvm_mapper::error::Error [−][src]
pub enum Error {
Parse(BitstreamError),
BadUnroll(String),
BadRecordMap(String),
BadBlockMap(String),
BadField(String),
BlockRecordMismatch(u64, BlockId),
BlockBlockMismatch(BlockId, BlockId),
BadDataLayout(DataLayoutParseError),
BadContext(MapCtxError),
BadStrtab(StrtabError),
Unsupported(String),
}Expand description
All possible errors that can occur while mapping a bitstream.
Variants
Parse(BitstreamError)We encountered an error while performing the underlying bitstream parse.
Tuple Fields of Parse
BadUnroll(String)We couldn’t unroll the stream because of a structural error.
Tuple Fields of BadUnroll
0: StringBadRecordMap(String)We couldn’t map a record, for any number of reasons.
Tuple Fields of BadRecordMap
0: StringBadBlockMap(String)We couldn’t map a block, for any number of reasons.
Tuple Fields of BadBlockMap
0: StringBadField(String)We couldn’t interpret a record field, for any number of reasons.
Tuple Fields of BadField
0: StringWe expected exactly one record with this code in this block.
We expected exactly one sub-block with this ID in this block.
BadDataLayout(DataLayoutParseError)We couldn’t parse the datalayout specifier.
Tuple Fields of BadDataLayout
BadContext(MapCtxError)Our mapping context isn’t valid for this operation.
Tuple Fields of BadContext
0: MapCtxErrorBadStrtab(StrtabError)Retrieving a string from a string table failed.
Tuple Fields of BadStrtab
0: StrtabErrorUnsupported(String)The bitstream contains features or is represented in a way we don’t support. Yet.
Tuple Fields of Unsupported
0: StringTrait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.