Struct rustc_codegen_llvm::ModuleLlvm
source · pub struct ModuleLlvm {
pub(crate) llcx: &'static mut Context,
pub(crate) llmod_raw: *const Module,
pub(crate) tm: &'static mut TargetMachine,
}
Fields
llcx: &'static mut Context
llmod_raw: *const Module
tm: &'static mut TargetMachine
Implementations
sourceimpl ModuleLlvm
impl ModuleLlvm
pub(crate) fn new(tcx: TyCtxt<'_>, mod_name: &str) -> Self
pub(crate) fn new_metadata(tcx: TyCtxt<'_>, mod_name: &str) -> Self
pub(crate) fn parse(
cgcx: &CodegenContext<LlvmCodegenBackend>,
name: &CStr,
buffer: &[u8],
handler: &Handler
) -> Result<Self, FatalError>
pub(crate) fn llmod(&self) -> &Module
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes