From 4877e471e3738add6d7724a6976dcbdee16c1702 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 13 May 2011 18:25:01 -0400 Subject: [PATCH] call.c (build_op_call): Use timevar_cond_start/stop. * call.c (build_op_call): Use timevar_cond_start/stop. (build_user_type_conversion): Likewise. From-SVN: r173740 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/call.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6ca367103e0..308eaa1efc0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2011-05-13 Jason Merrill + + * call.c (build_op_call): Use timevar_cond_start/stop. + (build_user_type_conversion): Likewise. + 2011-05-12 Jason Merrill * cp-tree.h (DECL_DEFERRED_CONSTEXPR_CHECK): New. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 095d1b0cb29..09ad4aea25e 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -3521,7 +3521,7 @@ build_user_type_conversion (tree totype, tree expr, int flags) struct z_candidate *cand; tree ret; - timevar_start (TV_OVERLOAD); + bool subtime = timevar_cond_start (TV_OVERLOAD); cand = build_user_type_conversion_1 (totype, expr, flags); if (cand) @@ -3537,7 +3537,7 @@ build_user_type_conversion (tree totype, tree expr, int flags) else ret = NULL_TREE; - timevar_stop (TV_OVERLOAD); + timevar_cond_stop (TV_OVERLOAD, subtime); return ret; } @@ -4029,9 +4029,9 @@ tree build_op_call (tree obj, VEC(tree,gc) **args, tsubst_flags_t complain) { tree ret; - timevar_start (TV_OVERLOAD); + bool subtime = timevar_cond_start (TV_OVERLOAD); ret = build_op_call_1 (obj, args, complain); - timevar_stop (TV_OVERLOAD); + timevar_cond_stop (TV_OVERLOAD, subtime); return ret; } -- 2.30.2