Struct llvm_mapper::map::MapCtx [−][src]
#[non_exhaustive]pub struct MapCtx { /* fields omitted */ }
Expand description
A handle for various bits of state that are necessary for correct block and record mapping.
Internally, this is a mushy state object that may or may not contain sufficient information for parsing a particular block or record; hence the fallible access methods.
Block and record mapping operations are expected to update the supplied context, as appropriate.
Implementations
Returns the version stored in this context, or an error if no version is available.
A helper function for whether or not to use an associated string table for string lookups.
This corresponds to MODULE_CODE_VERSION
s of 2 and higher.
A helper function for determining how operands are encoded.
This corresponds to MODULE_CODE_VERSION
s of 1 and higher.
Returns the string table stored in this context, or an error if no string table is available.
Returns the attribute groups stored in this context, or an error if not available.