lvar_ref_t Struct Reference

Reference to a local variable. Used by mop_l. More...

Public Member Functions

 lvar_ref_t (mbl_array_t *m, int i, sval_t o=0)
 
 lvar_ref_t (const lvar_ref_t &r)
 
lvar_ref_toperator= (const lvar_ref_t &r)
 
 DECLARE_COMPARISONS (lvar_ref_t)
 
void swap (lvar_ref_t &r)
 
lvar_tvar (void) const
 Retrieve the referenced variable.
 

Public Attributes

mbl_array_t *const mba
 Pointer to the parent mbl_array_t object. More...
 
sval_t off
 offset from the beginning of the variable
 
int idx
 index into mba->vars
 

Detailed Description

Reference to a local variable. Used by mop_l.

Definition at line 2070 of file hexrays.hpp.

Member Data Documentation

◆ mba

mbl_array_t* const lvar_ref_t::mba

Pointer to the parent mbl_array_t object.

Since we need to access the 'mba->vars' array in order to retrieve the referenced variable, we keep a pointer to mbl_array_t here. Note: this means this class and consequently mop_t, minsn_t, mblock_t are specific to a mbl_array_t object and can not migrate between them. fortunately this is not something we need to do. second, lvar_ref_t's appear only after MMAT_LVARS.

Definition at line 2079 of file hexrays.hpp.