call.c (build_op_call): Use timevar_cond_start/stop.
authorJason Merrill <jason@redhat.com>
Fri, 13 May 2011 22:25:01 +0000 (18:25 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 13 May 2011 22:25:01 +0000 (18:25 -0400)
* call.c (build_op_call): Use timevar_cond_start/stop.
(build_user_type_conversion): Likewise.

From-SVN: r173740

gcc/cp/ChangeLog
gcc/cp/call.c

index 6ca367103e08ffc841d30074182d095c2874dfbc..308eaa1efc0695acf8aa5314e7525de55f356850 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * cp-tree.h (DECL_DEFERRED_CONSTEXPR_CHECK): New.
index 095d1b0cb294a6492069be1ef9b8e53a3f71cff9..09ad4aea25ecec9f093db2056d00781b2964fa4b 100644 (file)
@@ -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;
 }