Struct rustc_trans::trans::context::SharedCrateContextExperimental [-]  [+] [src]

pub struct SharedCrateContext<'tcx> {
    // some fields omitted
}

The shared portion of a CrateContext. There is one SharedCrateContext per crate. The data here is shared between all compilation units of the crate, so it must not contain references to any LLVM data structures (aside from metadata-related ones).

Methods

impl<'tcx> SharedCrateContext<'tcx>

fn new(crate_name: &str, local_count: uint, tcx: ctxt<'tcx>, emap2: ExportMap2, symbol_hasher: Sha256, link_meta: LinkMeta, reachable: NodeSet) -> SharedCrateContext<'tcx>

fn iter<'a>(&'a self) -> CrateContextIterator<'a, 'tcx>

fn get_ccx<'a>(&'a self, index: uint) -> CrateContext<'a, 'tcx>

fn metadata_llmod(&self) -> ModuleRef

fn metadata_llcx(&self) -> ContextRef

fn exp_map2<'a>(&'a self) -> &'a ExportMap2

fn reachable<'a>(&'a self) -> &'a NodeSet

fn item_symbols<'a>(&'a self) -> &'a RefCell<NodeMap<String>>

fn symbol_hasher<'a>(&'a self) -> &'a RefCell<Sha256>

fn tcx<'a>(&'a self) -> &'a ctxt<'tcx>

fn take_tcx(self) -> ctxt<'tcx>

fn sess<'a>(&'a self) -> &'a Session

fn stats<'a>(&'a self) -> &'a Stats