/// Map a value to an LLHD constant (interned).
Map a value to an LLHD constant (interned).
Map a value to an LLHD constant ( interned ) .
fn emit_const(&mut self, value: Value<'gcx>, env: ParamEnv, span: Span) -> Result<HybridValue> {
        if let Some(x) = self.interned_consts.get(value) {
            x.clone()
        } else {
            let x = self.emit_const_uninterned(value, env, span);
            debug!("Emitted constant {:?}", x);
            // self.interned_consts.insert(value, x.clone());
            x
        }
    }
fn emit_const ( & mut self , value : Value < ' gcx > , env : ParamEnv , span : Span ) -> Result < HybridValue > { if let Some ( x ) = self . interned_consts . get ( value ) { x . clone ( ) } else { let x = self . emit_const_uninterned ( value , env , span ) ; debug ! ( " " x ) ; // self.interned_consts.insert(value, x.clone()); x } }
Map a value to an LLHD constant (interned).
Map a value to an LLHD constant ( interned ) .
&mut self
value
Value<'gcx>
env
ParamEnv
span
Span