summaryrefslogtreecommitdiff
path: root/gcc/timevar.c
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-02 00:49:14 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-02 00:49:14 +0000
commit73ad8cd692262d55adb86bd1ef31f4fc18c57f45 (patch)
tree136b53d7a653af2545b256d25c20965296940eb6 /gcc/timevar.c
parent56384bb0cf5c5ce8a71e60682fa9f209d81a693b (diff)
downloadgcc-73ad8cd692262d55adb86bd1ef31f4fc18c57f45.tar.gz
* timevar.h (timevar_get): Remove.
* timevar.c (timevar_get): Remove unused function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89975 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/timevar.c')
-rw-r--r--gcc/timevar.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/timevar.c b/gcc/timevar.c
index 65323eb4e66..43f88323d56 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. */