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 BitcodeModules.
Fields§
§identification: IdentificationThe identification block associated with this module.
module: ModuleThe module block associated with this module.
strtab: StrtabThe 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