Commit feb56348 authored by yb9976's avatar yb9976
Browse files

added non-const getter for ia32_immediate

parent 396e84cf
......@@ -414,6 +414,13 @@ const ia32_asm_attr_t *get_ia32_asm_attr_const(const ir_node *node) {
return asm_attr;
ia32_immediate_attr_t *get_ia32_immediate_attr(ir_node *node) {
ia32_attr_t *attr = get_ia32_attr(node);
ia32_immediate_attr_t *imm_attr = CAST_IA32_ATTR(ia32_immediate_attr_t, attr);
return imm_attr;
const ia32_immediate_attr_t *get_ia32_immediate_attr_const(const ir_node *node)
const ia32_attr_t *attr = get_ia32_attr_const(node);
......@@ -77,6 +77,7 @@ const ia32_attr_t *get_ia32_attr_const(const ir_node *node);
ia32_x87_attr_t *get_ia32_x87_attr(ir_node *node);
const ia32_x87_attr_t *get_ia32_x87_attr_const(const ir_node *node);
ia32_immediate_attr_t *get_ia32_immediate_attr(ir_node *node);
const ia32_immediate_attr_t *get_ia32_immediate_attr_const(const ir_node *node);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment