name-lookup.c (lookup_arg_dependent): Use conditional timevars.

* name-lookup.c (lookup_arg_dependent): Use conditional
	timevars.
	* decl.c (xref_tag): Likewise.

From-SVN: r178860
This commit is contained in:
Diego Novillo 2011-09-14 15:32:03 -04:00 committed by Diego Novillo
parent 4d7b770603
commit 700cf92e75
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2011-09-14 Diego Novillo <dnovillo@google.com>
* name-lookup.c (lookup_arg_dependent): Use conditional
timevars.
* decl.c (xref_tag): Likewise.
2011-09-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/50391

View File

@ -11599,9 +11599,10 @@ xref_tag (enum tag_types tag_code, tree name,
tag_scope scope, bool template_header_p)
{
tree ret;
timevar_start (TV_NAME_LOOKUP);
bool subtime;
subtime = timevar_cond_start (TV_NAME_LOOKUP);
ret = xref_tag_1 (tag_code, name, scope, template_header_p);
timevar_stop (TV_NAME_LOOKUP);
timevar_cond_stop (TV_NAME_LOOKUP, subtime);
return ret;
}

View File

@ -5438,9 +5438,10 @@ lookup_arg_dependent (tree name, tree fns, VEC(tree,gc) *args,
bool include_std)
{
tree ret;
timevar_start (TV_NAME_LOOKUP);
bool subtime;
subtime = timevar_cond_start (TV_NAME_LOOKUP);
ret = lookup_arg_dependent_1 (name, fns, args, include_std);
timevar_stop (TV_NAME_LOOKUP);
timevar_cond_stop (TV_NAME_LOOKUP, subtime);
return ret;
}