Remove timevar_get ()

Ben Elliston bje@au1.ibm.com
Tue Nov 2 00:21:00 GMT 2004


2004-11-02  Ben Elliston  <bje@au.ibm.com>

	* timevar.h (timevar_get): Remove. 
	* timevar.c (timevar_get): Remove unused function.

Index: timevar.h
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/timevar.h,v
retrieving revision 1.13
diff -u -p -r1.13 timevar.h
--- timevar.h	6 Jul 2003 12:35:55 -0000	1.13
+++ timevar.h	2 Nov 2004 00:20:41 -0000
@@ -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.  */
Index: timevar.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/timevar.c,v
retrieving revision 1.35
diff -u -p -r1.35 timevar.c
--- timevar.c	9 Sep 2004 07:54:06 -0000	1.35
+++ timevar.c	2 Nov 2004 00:20:41 -0000
@@ -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.  */



More information about the Gcc-patches mailing list