summaryrefslogtreecommitdiff
path: root/gcc/timevar.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-13 04:57:20 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-13 04:57:20 +0000
commit851fe51ad646609d3fae1188abb04025a6dfed80 (patch)
tree9a3b7172d75f59143babb90fde6ba9ce0208de97 /gcc/timevar.h
parentdafa71aaeabf235fe72095d1d96f1f2806fc37b7 (diff)
downloadgcc-851fe51ad646609d3fae1188abb04025a6dfed80.tar.gz
* timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
cp/ * decl.c: Include "timevar.h". (poplevel): Time name lookup. (find_binding): Likewise. (push_namespace): Likewise. (pop_nested_namespace): Likewise. (store_bindings): Likewise. (maybe_push_to_top_level): Likewise. (pop_from_top_level): Likewise. (push_local_name): Likewise. (pushtag): Likewise. (pushdecl): Likewise. (pushdecl_with_scope): Likewise. (pushdecl_namespace_level): Likewise. (pushdecl_top_level): Likewise. (pushdecl_class_level): Likewise. (push_class_level_binding): Likewise. (push_using_decl): Likewise. (push_using_directive): Likewise. (push_overloaded_decl): Likewise. (lookup_label): Likewise. (define_label): Likewise. (lookup_tag): Likewise. (lookup_tag_reverse): Likewise. (lookup_namespace_name): Likewise. (select_decl): Likewise. (unqualified_namespace_lookup): Likewise. (lookup_name_real): Likewise. (lookup_name_current_level): Likewise. (lookup_type_current_level): Likewise. (maybe_inject_for_scope_var): Likewise. (xref_tag): Likewise. * Make-lang.in (cp/decl.o): Add dependency on timevar.h git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62819 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/timevar.h')
-rw-r--r--gcc/timevar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/timevar.h b/gcc/timevar.h
index ac01a2994a5..5d5a018a6aa 100644
--- a/gcc/timevar.h
+++ b/gcc/timevar.h
@@ -76,6 +76,9 @@ typedef enum
timevar_id_t;
#undef DEFTIMEVAR
+/* Execute the sequence: timevar_pop (TV), return (E); */
+#define POP_TIMEVAR_AND_RETURN(TV, E) return (timevar_pop (TV), (E))
+
extern void init_timevar PARAMS ((void));
extern void timevar_push PARAMS ((timevar_id_t));
extern void timevar_pop PARAMS ((timevar_id_t));