pub struct BitcodeModule {
pub identification: Identification,
pub module: Module,
pub strtab: Strtab,
pub symtab: Option<Symtab>,
}
Expand description
A BitcodeModule
encapsulates the top-level pieces of bitstream state needed for
a single LLVM bitcode module: the IDENTIFICATION_BLOCK
, the MODULE_BLOCK
itself,
a STRTAB_BLOCK
, and a SYMTAB_BLOCK
(if the last is present). A bitstream can
contain multiple LLVM modules (e.g. if produced by llvm-cat -b
), so parsing a bitstream
can result in multiple BitcodeModule
s.
Fields§
§identification: Identification
The identification block associated with this module.
module: Module
The module block associated with this module.
strtab: Strtab
The string table associated with this module.
symtab: Option<Symtab>
The symbol table associated with this module, if it has one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BitcodeModule
impl RefUnwindSafe for BitcodeModule
impl Send for BitcodeModule
impl Sync for BitcodeModule
impl Unpin for BitcodeModule
impl UnwindSafe for BitcodeModule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more