Struct rustc_codegen_ssa::ModuleCodegen
source · pub struct ModuleCodegen<M> {
pub name: String,
pub module_llvm: M,
pub kind: ModuleKind,
}
Fields
name: String
The name of the module. When the crate may be saved between compilations, incremental compilation requires that name be unique amongst all crates. Therefore, it should contain something unique to this crate (e.g., a module path) as well as the crate name and disambiguator. We currently generate these names via CodegenUnit::build_cgu_name().
module_llvm: M
kind: ModuleKind
Implementations
sourceimpl<M> ModuleCodegen<M>
impl<M> ModuleCodegen<M>
pub fn into_compiled_module(
self,
emit_obj: bool,
emit_dwarf_obj: bool,
emit_bc: bool,
outputs: &OutputFilenames
) -> CompiledModule
Trait Implementations
sourceimpl<HCX, M> HashStable<HCX> for ModuleCodegen<M>
impl<HCX, M> HashStable<HCX> for ModuleCodegen<M>
fn hash_stable(&self, _: &mut HCX, _: &mut StableHasher)
Auto Trait Implementations
impl<M> RefUnwindSafe for ModuleCodegen<M>where
M: RefUnwindSafe,
impl<M> Send for ModuleCodegen<M>where
M: Send,
impl<M> Sync for ModuleCodegen<M>where
M: Sync,
impl<M> Unpin for ModuleCodegen<M>where
M: Unpin,
impl<M> UnwindSafe for ModuleCodegen<M>where
M: UnwindSafe,
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: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.