diff options
Diffstat (limited to 'gcc/langhooks-def.h')
-rw-r--r-- | gcc/langhooks-def.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/gcc/langhooks-def.h b/gcc/langhooks-def.h index 59083ad7b56..4484f866d88 100644 --- a/gcc/langhooks-def.h +++ b/gcc/langhooks-def.h @@ -52,6 +52,8 @@ extern tree lhd_do_nothing_iii_return_null_tree (int, int, int); extern int lhd_safe_from_p (rtx, tree); extern tree lhd_staticp (tree); extern void lhd_print_tree_nothing (FILE *, tree, int); +/* APPLE LOCAL kext identify vtables */ +extern int lhd_vtable_p (tree); extern const char *lhd_decl_printable_name (tree, int); extern int lhd_types_compatible_p (tree, tree); extern rtx lhd_expand_expr (tree, rtx, enum machine_mode, int, rtx *); @@ -68,6 +70,7 @@ extern bool lhd_decl_ok_for_sibcall (tree); extern const char *lhd_comdat_group (tree); extern tree lhd_expr_size (tree); extern size_t lhd_tree_size (enum tree_code); +extern HOST_WIDE_INT lhd_to_target_charset (HOST_WIDE_INT); /* Declarations of default tree inlining hooks. */ extern tree lhd_tree_inlining_walk_subtrees (tree *, int *, walk_tree_fn, @@ -82,7 +85,12 @@ extern void lhd_tree_inlining_end_inlining (tree); extern tree lhd_tree_inlining_convert_parm_for_inlining (tree, tree, tree, int); extern void lhd_initialize_diagnostics (struct diagnostic_context *); extern tree lhd_callgraph_analyze_expr (tree *, int *, tree); - +/* APPLE LOCAL begin 4133801 */ +extern void lhd_start_source_file (int, const char *); +extern void lhd_end_source_file (int, const char *); +#define LANG_HOOKS_START_SOURCE_FILE lhd_start_source_file +#define LANG_HOOKS_END_SOURCE_FILE lhd_end_source_file +/* APPLE LOCAL end 4133801 */ /* Declarations for tree gimplification hooks. */ extern int lhd_gimplify_expr (tree *, tree *, tree *); @@ -91,6 +99,8 @@ extern int lhd_gimplify_expr (tree *, tree *, tree *); #define LANG_HOOKS_IDENTIFIER_SIZE sizeof (struct lang_identifier) #define LANG_HOOKS_INIT hook_bool_void_false #define LANG_HOOKS_FINISH lhd_do_nothing +/* APPLE LOCAL mainline */ +#define LANG_HOOKS_FINISH_FILE lhd_do_nothing #define LANG_HOOKS_PARSE_FILE lhd_do_nothing_i #define LANG_HOOKS_CLEAR_BINDING_STACK lhd_do_nothing #define LANG_HOOKS_INIT_OPTIONS hook_uint_uint_constcharptrptr_0 @@ -115,6 +125,8 @@ extern int lhd_gimplify_expr (tree *, tree *, tree *); #define LANG_HOOKS_PRINT_DECL lhd_print_tree_nothing #define LANG_HOOKS_PRINT_TYPE lhd_print_tree_nothing #define LANG_HOOKS_PRINT_IDENTIFIER lhd_print_tree_nothing +/* APPLE LOCAL kext identify vtables */ +#define LANG_HOOKS_VTABLE_P lhd_vtable_p #define LANG_HOOKS_PRINT_ERROR_FUNCTION lhd_print_error_function #define LANG_HOOKS_DECL_PRINTABLE_NAME lhd_decl_printable_name #define LANG_HOOKS_GET_CALLEE_FNDECL lhd_return_null_tree @@ -122,6 +134,7 @@ extern int lhd_gimplify_expr (tree *, tree *, tree *); #define LANG_HOOKS_TREE_SIZE lhd_tree_size #define LANG_HOOKS_TYPES_COMPATIBLE_P lhd_types_compatible_p #define LANG_HOOKS_BUILTIN_FUNCTION builtin_function +#define LANG_HOOKS_TO_TARGET_CHARSET lhd_to_target_charset #define LANG_HOOKS_FUNCTION_INIT lhd_do_nothing_f #define LANG_HOOKS_FUNCTION_FINAL lhd_do_nothing_f @@ -259,6 +272,8 @@ extern tree lhd_make_node (enum tree_code); LANG_HOOKS_POST_OPTIONS, \ LANG_HOOKS_INIT, \ LANG_HOOKS_FINISH, \ + /* APPLE LOCAL mainline */ \ + LANG_HOOKS_FINISH_FILE, \ LANG_HOOKS_PARSE_FILE, \ LANG_HOOKS_CLEAR_BINDING_STACK, \ LANG_HOOKS_GET_ALIAS_SET, \ @@ -285,9 +300,12 @@ extern tree lhd_make_node (enum tree_code); LANG_HOOKS_GET_CALLEE_FNDECL, \ LANG_HOOKS_PRINT_ERROR_FUNCTION, \ LANG_HOOKS_EXPR_SIZE, \ + LANG_HOOKS_TO_TARGET_CHARSET, \ LANG_HOOKS_ATTRIBUTE_TABLE, \ LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, \ LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE, \ +/* APPLE LOCAL kext identify vtables */ \ + LANG_HOOKS_VTABLE_P, \ LANG_HOOKS_FUNCTION_INITIALIZER, \ LANG_HOOKS_TREE_INLINING_INITIALIZER, \ LANG_HOOKS_CALLGRAPH_INITIALIZER, \ @@ -297,6 +315,10 @@ extern tree lhd_make_node (enum tree_code); LANG_HOOKS_GIMPLIFY_EXPR, \ LANG_HOOKS_FOLD_OBJ_TYPE_REF, \ LANG_HOOKS_BUILTIN_FUNCTION, \ +/* APPLE LOCAL begin 4133801 */ \ + LANG_HOOKS_START_SOURCE_FILE, \ + LANG_HOOKS_END_SOURCE_FILE, \ +/* APPLE LOCAL end 4133801 */ \ } #endif /* GCC_LANG_HOOKS_DEF_H */ |