From e38723d2391f4e274b46317187179a18bfb5135f Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 12 Sep 2007 19:10:36 +0000 Subject: 2007-09-12 Martin Hunt PR 5019 * elaborate.cxx (visit_hist_op): Remove log histogram param. * translate.cxx (assert_hist_compatible): Ditto. * staptree.cxx (hist_op::print): Ditto. * session.h (statistic_decl): Ditto. * parse.cxx (expect_number): Allow negative numbers. Also validate that input is really numeric. This is used by histograms to get the parameters. (parse_hist_op_or_bare_name): Remove code to get parameter for log histograms. --- elaborate.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'elaborate.cxx') diff --git a/elaborate.cxx b/elaborate.cxx index 12926846..094fbbac 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -831,8 +831,7 @@ struct stat_decl_collector { assert (e->htype == hist_log); new_stat.type = statistic_decl::logarithmic; - assert (e->params.size() == 1); - new_stat.logarithmic_buckets = e->params[0]; + assert (e->params.size() == 0); } map::iterator i = session.stat_decls.find(sym->name); -- cgit