summaryrefslogtreecommitdiff
path: root/gcc/langhooks.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-09-10 12:16:20 -0700
committerRichard Henderson <rth@gcc.gnu.org>2003-09-10 12:16:20 -0700
commit25c84396dd1bfb44ff5365d8ff512f1233101dfd (patch)
tree56d08387c52a8a24e834f4ec5cb02b4cf7d17bf9 /gcc/langhooks.h
parent707691d877398ea53c48961368d24e06787ac43d (diff)
downloadgcc-25c84396dd1bfb44ff5365d8ff512f1233101dfd.tar.gz
cgraph.h (struct cgraph_node): Rename lowered to analyzed.
* cgraph.h (struct cgraph_node): Rename lowered to analyzed. * cgraphunit.c: Update to match. (record_call_1): Rearrange. Call lang hook for language nodes. (cgraph_analyze_function): Don't call lower_function. * langhooks.h (struct lang_hooks_for_callgraph): Replace lower_function with analyze_expr. * langhooks-def.h: Update to match. * langhooks.c (lhd_callgraph_analyze_expr): New. * decl2.c (cxx_callgraph_analyze_expr): New, from corpse of mark_member_pointers. (lower_function): Remove. * cp-tree.h: Update to match. * cp-lang.c (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): New. (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION): Remove. From-SVN: r71277
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r--gcc/langhooks.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h
index 0d86478fc64..195446c702c 100644
--- a/gcc/langhooks.h
+++ b/gcc/langhooks.h
@@ -53,9 +53,10 @@ struct lang_hooks_for_tree_inlining
struct lang_hooks_for_callgraph
{
- /* Function passed as argument is needed and will be compiled.
- Lower the representation so the calls are explicit. */
- void (*lower_function) (tree);
+ /* The node passed is a language-specific tree node. If its contents
+ are relevant to use of other declarations, mark them. */
+ tree (*analyze_expr) (tree *, int *, tree);
+
/* Produce RTL for function passed as argument. */
void (*expand_function) (tree);
};