/* The lang_hooks data structure.
- Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
- 2011 Free Software Foundation, Inc.
+ Copyright (C) 2001-2013 Free Software Foundation, Inc.
This file is part of GCC.
#ifndef GCC_LANG_HOOKS_H
#define GCC_LANG_HOOKS_H
-/* This file should be #include-d after tree.h. */
+/* FIXME: This file should be #include-d after tree.h (for enum tree_code). */
struct diagnostic_info;
bool (*var_mod_type_p) (tree, tree);
};
-struct lang_hooks_for_callgraph
-{
- /* 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 *);
-};
-
/* The following hooks are used by tree-dump.c. */
struct lang_hooks_for_tree_dump
struct lang_hooks_for_tree_inlining tree_inlining;
- struct lang_hooks_for_callgraph callgraph;
-
struct lang_hooks_for_tree_dump tree_dump;
struct lang_hooks_for_decls decls;
/* Each front end provides its own. */
extern struct lang_hooks lang_hooks;
+
extern tree add_builtin_function (const char *name, tree type,
int function_code, enum built_in_class cl,
const char *library_name,
enum built_in_class cl,
const char *library_name,
tree attrs);
-
+extern tree add_builtin_type (const char *name, tree type);
+
#endif /* GCC_LANG_HOOKS_H */