diff options
Diffstat (limited to 'staptree.h')
-rw-r--r-- | staptree.h | 27 |
1 files changed, 2 insertions, 25 deletions
@@ -846,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) |