cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
[official-gcc.git] / gcc / c-family / c-objc.h
blobbf4e3d536d671c0372a0a481b9908456893fe20b
1 /* Definitions of Objective-C front-end entry points used for C and C++.
2 Copyright (C) 1987-2013 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef GCC_C_COMMON_OBJC_H
21 #define GCC_C_COMMON_OBJC_H
23 /* ObjC ivar visibility types. */
24 typedef enum objc_ivar_visibility_kind {
25 OBJC_IVAR_VIS_PROTECTED = 0,
26 OBJC_IVAR_VIS_PUBLIC = 1,
27 OBJC_IVAR_VIS_PRIVATE = 2,
28 OBJC_IVAR_VIS_PACKAGE = 3
29 } objc_ivar_visibility_kind;
31 /* Objective-C / Objective-C++ entry points. */
33 /* The following ObjC/ObjC++ functions are called by the C and/or C++
34 front-ends; they all must have corresponding stubs in stub-objc.c. */
35 extern void objc_write_global_declarations (void);
36 extern tree objc_is_class_name (tree);
37 extern tree objc_is_object_ptr (tree);
38 extern void objc_check_decl (tree);
39 extern void objc_check_global_decl (tree);
40 extern tree objc_common_type (tree, tree);
41 extern bool objc_compare_types (tree, tree, int, tree);
42 extern bool objc_have_common_type (tree, tree, int, tree);
43 extern bool objc_diagnose_private_ivar (tree);
44 extern void objc_volatilize_decl (tree);
45 extern tree objc_rewrite_function_call (tree, tree);
46 extern tree objc_message_selector (void);
47 extern tree objc_lookup_ivar (tree, tree);
48 extern void objc_clear_super_receiver (void);
49 extern int objc_is_public (tree, tree);
50 extern tree objc_is_id (tree);
51 extern void objc_declare_alias (tree, tree);
52 extern void objc_declare_class (tree);
53 extern void objc_declare_protocol (tree, tree);
54 extern tree objc_build_message_expr (tree, tree);
55 extern tree objc_finish_message_expr (tree, tree, tree, tree*);
56 extern tree objc_build_selector_expr (location_t, tree);
57 extern tree objc_build_protocol_expr (tree);
58 extern tree objc_build_encode_expr (tree);
59 extern tree objc_build_string_object (tree);
60 extern tree objc_get_protocol_qualified_type (tree, tree);
61 extern tree objc_get_class_reference (tree);
62 extern tree objc_get_class_ivars (tree);
63 extern bool objc_detect_field_duplicates (bool);
64 extern void objc_start_class_interface (tree, tree, tree, tree);
65 extern void objc_start_category_interface (tree, tree, tree, tree);
66 extern void objc_start_protocol (tree, tree, tree);
67 extern void objc_continue_interface (void);
68 extern void objc_finish_interface (void);
69 extern void objc_start_class_implementation (tree, tree);
70 extern void objc_start_category_implementation (tree, tree);
71 extern void objc_continue_implementation (void);
72 extern void objc_finish_implementation (void);
73 extern void objc_set_visibility (objc_ivar_visibility_kind);
74 extern tree objc_build_method_signature (bool, tree, tree, tree, bool);
75 extern void objc_add_method_declaration (bool, tree, tree);
76 extern bool objc_start_method_definition (bool, tree, tree, tree);
77 extern void objc_finish_method_definition (tree);
78 extern void objc_add_instance_variable (tree);
79 extern tree objc_build_keyword_decl (tree, tree, tree, tree);
80 extern tree objc_build_throw_stmt (location_t, tree);
81 extern void objc_begin_try_stmt (location_t, tree);
82 extern tree objc_finish_try_stmt (void);
83 extern void objc_begin_catch_clause (tree);
84 extern void objc_finish_catch_clause (void);
85 extern void objc_build_finally_clause (location_t, tree);
86 extern tree objc_build_synchronized (location_t, tree, tree);
87 extern int objc_static_init_needed_p (void);
88 extern tree objc_generate_static_init_call (tree);
89 extern tree objc_generate_write_barrier (tree, enum tree_code, tree);
90 extern void objc_set_method_opt (bool);
91 extern void objc_finish_foreach_loop (location_t, tree, tree, tree, tree, tree);
92 extern bool objc_method_decl (enum tree_code);
93 extern void objc_add_property_declaration (location_t, tree, bool, bool, bool,
94 bool, bool, bool, tree, tree);
95 extern tree objc_maybe_build_component_ref (tree, tree);
96 extern tree objc_build_class_component_ref (tree, tree);
97 extern tree objc_maybe_build_modify_expr (tree, tree);
98 extern tree objc_build_incr_expr_for_property_ref (location_t, enum tree_code,
99 tree, tree);
100 extern void objc_add_synthesize_declaration (location_t, tree);
101 extern void objc_add_dynamic_declaration (location_t, tree);
102 extern const char * objc_maybe_printable_name (tree, int);
103 extern bool objc_is_property_ref (tree);
104 extern bool objc_string_ref_type_p (tree);
105 extern void objc_check_format_arg (tree, tree);
106 extern void objc_finish_function (void);
107 extern void objc_maybe_warn_exceptions (location_t);
109 /* The following are provided by the C and C++ front-ends, and called by
110 ObjC/ObjC++. */
111 extern void *objc_get_current_scope (void);
112 extern void objc_mark_locals_volatile (void *);
114 #endif /* ! GCC_C_COMMON_OBJC_H */