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§
source§impl 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§
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