summaryrefslogtreecommitdiff
path: root/ir_constant_folding.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-04-07 13:19:11 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-07 17:23:23 -0700
commit894ea972a4defdaafeaa3a248c113b06c7ae0c7e (patch)
tree2efd3473b4375e0ee1ea2714f7530f590054a7aa /ir_constant_folding.cpp
parentf1ddca9f2143e377d2a70941dcedbb1f5c699e07 (diff)
Put function bodies under function signatures, instead of flat in the parent.
This will let us know the length of function bodies for the purpose of inlining (among other uses).
Diffstat (limited to 'ir_constant_folding.cpp')
-rw-r--r--ir_constant_folding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir_constant_folding.cpp b/ir_constant_folding.cpp
index e43f6f0ea4..294f2c2409 100644
--- a/ir_constant_folding.cpp
+++ b/ir_constant_folding.cpp
@@ -46,14 +46,14 @@ ir_constant_folding_visitor::visit(ir_variable *ir)
void
ir_constant_folding_visitor::visit(ir_label *ir)
{
- (void) ir;
+ ir->signature->accept(this);
}
void
ir_constant_folding_visitor::visit(ir_function_signature *ir)
{
- (void) ir;
+ visit_exec_list(&ir->body, this);
}