summaryrefslogtreecommitdiffstats
path: root/staptree.h
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-01-24 23:48:06 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-01-24 23:48:06 -0500
commita1732c4f7856621604a1cc45a29af618aaa502e0 (patch)
tree29e3f9c4405e1fd1f81b8c87ac2e485855541a66 /staptree.h
parent7ee3e80ec0b7880c33d0ca3018025855d9dd5123 (diff)
parent674427d3a018d0f89c9669db8dcf952aab8b4423 (diff)
downloadsystemtap-steved-a1732c4f7856621604a1cc45a29af618aaa502e0.tar.gz
systemtap-steved-a1732c4f7856621604a1cc45a29af618aaa502e0.tar.xz
systemtap-steved-a1732c4f7856621604a1cc45a29af618aaa502e0.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'staptree.h')
-rw-r--r--staptree.h29
1 files changed, 2 insertions, 27 deletions
diff --git a/staptree.h b/staptree.h
index a1a5ebd2..5b4b56cd 100644
--- a/staptree.h
+++ b/staptree.h
@@ -591,10 +591,8 @@ struct probe
const token* tok;
std::vector<vardecl*> locals;
std::vector<vardecl*> unused_locals;
- expression* condition;
probe ();
void print (std::ostream& o) const;
- void add_condition (expression* e);
virtual void printsig (std::ostream &o) const;
virtual void collect_derivation_chain (std::vector<derived_probe*> &probes_list);
virtual probe* basest () { return this; }
@@ -848,31 +846,8 @@ require (deep_copy_visitor* v, T* dst, T src)
}
}
-template <> static void
-require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src)
-{
- if (src != NULL)
- {
- symbol *array_src=NULL, *array_dst=NULL;
- hist_op *hist_src=NULL, *hist_dst=NULL;
-
- classify_indexable(src, array_src, hist_src);
-
- *dst = NULL;
-
- if (array_src)
- {
- require <symbol*> (v, &array_dst, array_src);
- *dst = array_dst;
- }
- else
- {
- require <hist_op*> (v, &hist_dst, hist_src);
- *dst = hist_dst;
- }
- assert (*dst);
- }
-}
+template <> void
+require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src);
template <typename T> void
provide (deep_copy_visitor* v, T src)