v = &label. This is used for modeling a GNU C extension that allows taking address of labels. More...
#include <AddressLabel.h>
Public Member Functions | |
AddressLabel (Variable *v, string label, bool is_function, il::node *original, int line) | |
virtual string | to_string () const |
virtual Variable * | get_lhs () |
virtual void | set_lhs (Variable *v) |
string | get_label () |
bool | is_function_label () |
il::type * | get_signature () |
virtual string | to_string (bool pretty_print) const |
virtual bool | is_removable () |
Friends | |
class | boost::serialization::access |
v = &label. This is used for modeling a GNU C extension that allows taking address of labels.
bool sail::AddressLabel::is_removable | ( | ) | [virtual] |
An instruction is removable if it's not present in the original source code, but introduced in the translation from the high-level language to the low-level language. For instance, if **x is an expression used in the original code, the low-level language will introduce a temporary t=*x; such instructions are "removable" for printing purposes.
Implements sail::Instruction.