summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-19 15:40:49 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-28 18:22:54 -0700
commit7ee79fb6b78012abd0ae8e874a7c64550b1cb707 (patch)
treeb9b35e2debdc896c3aff5974fc9f7ed58fd53124 /ir.h
parent8f755dcb67848966c350883ad6fbb50547d9ec24 (diff)
Add ir_dereference constructor for structure field dereferences
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index 42e8264d41..b3fb06d2c7 100644
--- a/ir.h
+++ b/ir.h
@@ -749,6 +749,8 @@ public:
ir_dereference(ir_instruction *variable, ir_rvalue *array_index);
+ ir_dereference(ir_instruction *variable, const char *field);
+
virtual ir_dereference *as_dereference()
{
return this;