diff options
author | Jason Merrill <jason@redhat.com> | 2021-10-16 00:04:25 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-11-23 20:25:47 -0500 |
commit | 9bf69a8558638ce0cdd69e83a68776deb9b8e053 (patch) | |
tree | da3c262a201ef128d64aaf930512fc4767eb2ea8 /gcc/cp/parser.c | |
parent | 7df89377a7ae3906255e38a79be8e5d962c3a0df (diff) | |
download | gcc-9bf69a8558638ce0cdd69e83a68776deb9b8e053.zip gcc-9bf69a8558638ce0cdd69e83a68776deb9b8e053.tar.gz gcc-9bf69a8558638ce0cdd69e83a68776deb9b8e053.tar.bz2 |
timevar: Add auto_cond_timevar class
The auto_timevar sentinel class for starting and stopping timevars was added
in 2014, but doesn't work for the many uses of timevar_cond_start/stop in
the C++ front end. So let's add one that does.
This allows us to remove a lot of wrapper functions that were just used to
call timevar_cond_stop on all exits from the function.
gcc/ChangeLog:
* timevar.h (class auto_cond_timevar): New.
gcc/cp/ChangeLog:
* call.c
* decl.c
* name-lookup.c:
Use auto_cond_timevar instead of timevar_cond_start/stop.
Remove wrapper functions.
Diffstat (limited to 'gcc/cp/parser.c')
0 files changed, 0 insertions, 0 deletions