]> sourceware.org Git - systemtap.git/commit - staptree.cxx
Add update_visitor::replace
authorJosh Stone <jistone@redhat.com>
Mon, 3 Aug 2009 22:49:40 +0000 (15:49 -0700)
committerJosh Stone <jistone@redhat.com>
Mon, 3 Aug 2009 22:49:40 +0000 (15:49 -0700)
commit8b095b454b34e88c04592be6c651153f802eced6
tree9dd9080f259427ddad2ae70de7ba908832b4ef07
parent3a4235b9897b75a188753419a29f0616c1686249
Add update_visitor::replace

I noticed that most uses of update_visitor::require() were simply
writing the value back to the same place, i.e. foo = require(foo).  The
new replace() method just encapsulates that paradigm, so we don't have
the duplication between the LHS and RHS.

* staptree.h (update_visitor::replace): New.
* elaborate.cxx, staptree.cxx, tapset-mark.cxx, tapset-perfmon.cxx,
  tapset-procfs.cxx, tapset-utrace.cxx, tapsets.cxx: Update all require
  calls that are simply updating the value in-place.
elaborate.cxx
staptree.cxx
staptree.h
tapset-mark.cxx
tapset-perfmon.cxx
tapset-procfs.cxx
tapset-utrace.cxx
tapsets.cxx
This page took 0.026023 seconds and 5 git commands to generate.