diff options
author | Josh Stone <jistone@redhat.com> | 2009-02-05 20:02:35 -0800 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-02-10 16:49:35 -0800 |
commit | 4b6455e82679becf3ad12e4f12abb70de1ee271d (patch) | |
tree | 41ab74c39b45203c8ce9552674bc409094e0a82a /tapsets.cxx | |
parent | 4ed05b152284d9d4b8545f6e70c57ebdcd993f46 (diff) | |
download | systemtap-steved-4b6455e82679becf3ad12e4f12abb70de1ee271d.tar.gz systemtap-steved-4b6455e82679becf3ad12e4f12abb70de1ee271d.tar.xz systemtap-steved-4b6455e82679becf3ad12e4f12abb70de1ee271d.zip |
Create update_visitor for modifying trees
* staptree.h (update_visitor): A new visitor to make it easier to
rewrite parts of a probe or function without making a full copy.
* staptree.cxx (update_visitor::*): Each child is recursed with a
require() call, and then the parent returns itself with provide().
* staptree.h (deep_copy_visitor): Inherit from update_visitor to get
the recursive descent while updating nodes.
* staptree.cxx (deep_copy_visitor::*): Use the implicit copy
constructors to copy all fields, then defer to update_visitor for the
recursion. Referents are still cleared from the copies of symbols and
function calls.
Diffstat (limited to 'tapsets.cxx')
0 files changed, 0 insertions, 0 deletions