Struct rustc::middle::trans::common::Block[src]

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

Fields

llbb
terminated
unreachable
is_lpad
opt_node_id
fcx

Methods

impl<'a> Block<'a>

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

fn ccx(&self) -> &'a CrateContext

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

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

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

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

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

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

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

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

fn ty_to_str(&self, t: t) -> String

fn to_str(&self) -> String