Commit 4877e471 by Jason Merrill Committed by Jason Merrill

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
parent 411a20d6
2011-05-13 Jason Merrill <jason@redhat.com>
* call.c (build_op_call): Use timevar_cond_start/stop.
(build_user_type_conversion): Likewise.
2011-05-12 Jason Merrill <jason@redhat.com> 2011-05-12 Jason Merrill <jason@redhat.com>
* cp-tree.h (DECL_DEFERRED_CONSTEXPR_CHECK): New. * cp-tree.h (DECL_DEFERRED_CONSTEXPR_CHECK): New.
......
...@@ -3521,7 +3521,7 @@ build_user_type_conversion (tree totype, tree expr, int flags) ...@@ -3521,7 +3521,7 @@ build_user_type_conversion (tree totype, tree expr, int flags)
struct z_candidate *cand; struct z_candidate *cand;
tree ret; tree ret;
timevar_start (TV_OVERLOAD); bool subtime = timevar_cond_start (TV_OVERLOAD);
cand = build_user_type_conversion_1 (totype, expr, flags); cand = build_user_type_conversion_1 (totype, expr, flags);
if (cand) if (cand)
...@@ -3537,7 +3537,7 @@ build_user_type_conversion (tree totype, tree expr, int flags) ...@@ -3537,7 +3537,7 @@ build_user_type_conversion (tree totype, tree expr, int flags)
else else
ret = NULL_TREE; ret = NULL_TREE;
timevar_stop (TV_OVERLOAD); timevar_cond_stop (TV_OVERLOAD, subtime);
return ret; return ret;
} }
...@@ -4029,9 +4029,9 @@ tree ...@@ -4029,9 +4029,9 @@ tree
build_op_call (tree obj, VEC(tree,gc) **args, tsubst_flags_t complain) build_op_call (tree obj, VEC(tree,gc) **args, tsubst_flags_t complain)
{ {
tree ret; tree ret;
timevar_start (TV_OVERLOAD); bool subtime = timevar_cond_start (TV_OVERLOAD);
ret = build_op_call_1 (obj, args, complain); ret = build_op_call_1 (obj, args, complain);
timevar_stop (TV_OVERLOAD); timevar_cond_stop (TV_OVERLOAD, subtime);
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment