diff options
author | Eric Anholt <eric@anholt.net> | 2010-06-24 08:59:57 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-24 13:32:35 -0700 |
commit | f66ba4f3579d69841176bfe7ced9df80eac57a80 (patch) | |
tree | 8c2499bbad3d5ba4503e8fcd742e41d7811a8cda /ir_hierarchical_visitor.h | |
parent | 1b2bcf791365f7bab282e38808efadba19291261 (diff) |
ir_function_inlining: Re-add the "s/return/retval =/" functionality.
I ripped it out with the cloning changes yesterday, and should have
tested and noticed that there were now returns all over.
Diffstat (limited to 'ir_hierarchical_visitor.h')
-rw-r--r-- | ir_hierarchical_visitor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ir_hierarchical_visitor.h b/ir_hierarchical_visitor.h index e741155e19..8b9e49dab1 100644 --- a/ir_hierarchical_visitor.h +++ b/ir_hierarchical_visitor.h @@ -139,7 +139,6 @@ public: */ void run(struct exec_list *instructions); -protected: /** * Callback function that is invoked on entry to each node visited. * @@ -156,4 +155,8 @@ protected: void *data; }; +void visit_tree(ir_instruction *ir, + void (*callback)(class ir_instruction *ir, void *data), + void *data); + #endif /* IR_HIERARCHICAL_VISITOR_H */ |