[−][src]Struct rustc_codegen_llvm::ModuleLlvm

pub struct ModuleLlvm {
    llcx: &'static mut Context,
    llmod_raw: *const Module,
    tm: &'static mut TargetMachine,
}

Fields

llcx: &'static mut Contextllmod_raw: *const Moduletm: &'static mut TargetMachine

Implementations

impl ModuleLlvm[src]

pub(crate) fn new(tcx: TyCtxt<'_>, mod_name: &str) -> Self[src]

pub(crate) fn new_metadata(tcx: TyCtxt<'_>, mod_name: &str) -> Self[src]

pub(crate) fn parse(
    cgcx: &CodegenContext<LlvmCodegenBackend>,
    name: &CStr,
    buffer: &[u8],
    handler: &Handler
) -> Result<Self, FatalError>
[src]

pub(crate) fn llmod(&self) -> &Module[src]

Trait Implementations

impl Drop for ModuleLlvm[src]

impl Send for ModuleLlvm[src]

impl Sync for ModuleLlvm[src]

Auto Trait Implementations

impl !RefUnwindSafe for ModuleLlvm

impl Unpin for ModuleLlvm

impl !UnwindSafe for ModuleLlvm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.