Add ir_call::iterator to iterate over actual parameters
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 27 Mar 2010 00:19:47 +0000 (17:19 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 27 Mar 2010 00:20:31 +0000 (17:20 -0700)
ir.h

diff --git a/ir.h b/ir.h
index 04ac0b3e01386a2ec8f38b77566237c7007c4b47..98455f7c379dd8ad1a0043e053772fb0731d8874 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -319,6 +319,14 @@ public:
     */
    static ir_call *get_error_instruction();
 
+   /**
+    * Get an iterator for the set of acutal parameters
+    */
+   exec_list_iterator iterator()
+   {
+      return actual_parameters.iterator();
+   }
+
 private:
    ir_call()
       : ir_rvalue(), callee(NULL)