diff options
author | Ben Elliston <bje@au.ibm.com> | 2004-11-02 00:49:14 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2004-11-02 11:49:14 +1100 |
commit | 0537bf15039181ffd1be68695806ddc545d22331 (patch) | |
tree | 136b53d7a653af2545b256d25c20965296940eb6 /gcc | |
parent | 708b34218d70dc5ec480dc7fc665fff2fc23830b (diff) | |
download | gcc-0537bf15039181ffd1be68695806ddc545d22331.zip gcc-0537bf15039181ffd1be68695806ddc545d22331.tar.gz gcc-0537bf15039181ffd1be68695806ddc545d22331.tar.bz2 |
timevar.h (timevar_get): Remove.
* timevar.h (timevar_get): Remove.
* timevar.c (timevar_get): Remove unused function.
From-SVN: r89975
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/timevar.c | 25 | ||||
-rw-r--r-- | gcc/timevar.h | 1 |
3 files changed, 5 insertions, 26 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a9ffca..779da12 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-02 Ben Elliston <bje@au.ibm.com> + + * timevar.h (timevar_get): Remove. + * timevar.c (timevar_get): Remove unused function. + 2004-11-02 Joseph S. Myers <joseph@codesourcery.com> * doc/include/texinfo.tex: Update from Texinfo CVS. diff --git a/gcc/timevar.c b/gcc/timevar.c index 65323eb..43f8832 100644 --- a/gcc/timevar.c +++ b/gcc/timevar.c @@ -371,31 +371,6 @@ timevar_stop (timevar_id_t timevar) timevar_accumulate (&tv->elapsed, &tv->start_time, &now); } -/* Fill the elapsed time for TIMEVAR into ELAPSED. Returns - update-to-date information even if TIMEVAR is currently running. */ - -void -timevar_get (timevar_id_t timevar, struct timevar_time_def *elapsed) -{ - struct timevar_def *tv = &timevars[timevar]; - struct timevar_time_def now; - - *elapsed = tv->elapsed; - - /* Is TIMEVAR currently running as a standalone timer? */ - if (tv->standalone) - { - get_time (&now); - timevar_accumulate (elapsed, &tv->start_time, &now); - } - /* Or is TIMEVAR at the top of the timer stack? */ - else if (stack->timevar == tv) - { - get_time (&now); - timevar_accumulate (elapsed, &start_time, &now); - } -} - /* Summarize timing variables to FP. The timing variable TV_TOTAL has a special meaning -- it's considered to be the total elapsed time, for normalizing the others, and is displayed last. */ diff --git a/gcc/timevar.h b/gcc/timevar.h index 6f40ec0..f78ab19 100644 --- a/gcc/timevar.h +++ b/gcc/timevar.h @@ -84,7 +84,6 @@ extern void timevar_push (timevar_id_t); extern void timevar_pop (timevar_id_t); extern void timevar_start (timevar_id_t); extern void timevar_stop (timevar_id_t); -extern void timevar_get (timevar_id_t, struct timevar_time_def *); extern void timevar_print (FILE *); /* Provided for backward compatibility. */ |