summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
authorfche <fche>2005-05-30 21:28:44 +0000
committerfche <fche>2005-05-30 21:28:44 +0000
commitce10591c2048cc3c5e4979b15e14fecc2a384968 (patch)
tree09b4a09692e1810809091ad474e35e0b3f752a81 /staptree.cxx
parent4383d78cedb616af407f35c996c4eff808704ea6 (diff)
downloadsystemtap-steved-ce10591c2048cc3c5e4979b15e14fecc2a384968.tar.gz
systemtap-steved-ce10591c2048cc3c5e4979b15e14fecc2a384968.tar.xz
systemtap-steved-ce10591c2048cc3c5e4979b15e14fecc2a384968.zip
2005-05-30 Frank Ch. Eigler <fche@redhat.com>
More fully parse & elaborate "expr in array" construct. * staptree.h (array_in): Make this unary. Update .cxx to match. * parse.cxx (parse_array_in): Rewrite. (parse_symbol_plain): Removed. Update .h to match. * elaborate.cxx (typeresolution_info::visit_array_in): New function. (find_array): Tentatively, accept arity=0. * translate.cxx (c_unparser::c_assign): New functions to eliminate much ugly duplication. Use throughout. (visit_symbol): Correct function formal argument search. (c_tmpcounter*::visit): Add missing recursion in several functions. * testsuite/*: Add new tests for array-in construct. Add the first "transok" test. * Makefile.am: Add transok tests. * Makefile.in: Regenerated.
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/staptree.cxx b/staptree.cxx
index b1130d94..cf934fa2 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -630,8 +630,7 @@ traversing_visitor::visit_logical_and_expr (logical_and_expr* e)
void
traversing_visitor::visit_array_in (array_in* e)
{
- e->left->visit (this);
- e->right->visit (this);
+ e->operand->visit (this);
}
void