Struct rustc_trans::trans::common::BlockSExperimental [-]  [+] [src]

pub struct BlockS<'blk, 'tcx> {
    pub llbb: BasicBlockRef,
    pub terminated: Cell<bool>,
    pub unreachable: Cell<bool>,
    pub is_lpad: bool,
    pub opt_node_id: Option<NodeId>,
    pub fcx: &'blk FunctionContext<'blk, 'tcx>,
}

Fields

llbb
terminated
unreachable
is_lpad
opt_node_id
fcx

Methods

impl<'blk, 'tcx> BlockS<'blk, 'tcx>

fn new(llbb: BasicBlockRef, is_lpad: bool, opt_node_id: Option<NodeId>, fcx: &'blk FunctionContext<'blk, 'tcx>) -> Block<'blk, 'tcx>

fn ccx(&self) -> &'blk CrateContext<'blk, 'tcx>

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

fn sess(&self) -> &'blk Session

fn ident(&self, ident: Ident) -> String

fn node_id_to_string(&self, id: NodeId) -> String

fn expr_to_string(&self, e: &Expr) -> String

fn def(&self, nid: NodeId) -> Def

fn val_to_string(&self, val: ValueRef) -> String

fn llty_str(&self, ty: Type) -> String

fn ty_to_string(&self, t: Ty<'tcx>) -> String

fn to_str(&self) -> String

Trait Implementations

impl<'blk, 'tcx> Typer<'tcx> for BlockS<'blk, 'tcx>

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

fn node_ty(&self, id: NodeId) -> McResult<Ty<'tcx>>

fn node_method_ty(&self, method_call: MethodCall) -> Option<Ty<'tcx>>

fn adjustments<'a>(&'a self) -> &'a RefCell<NodeMap<AutoAdjustment<'tcx>>>

fn is_method_call(&self, id: NodeId) -> bool

fn temporary_scope(&self, rvalue_id: NodeId) -> Option<CodeExtent>

fn unboxed_closures<'a>(&'a self) -> &'a RefCell<DefIdMap<UnboxedClosure<'tcx>>>

fn upvar_borrow(&self, upvar_id: UpvarId) -> UpvarBorrow

fn capture_mode(&self, closure_expr_id: NodeId) -> CaptureClause