1 /* Declarations for objc-act.c.
2 Copyright (C) 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
3 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
22 #ifndef GCC_OBJC_ACT_H
23 #define GCC_OBJC_ACT_H
25 /*** Language hooks ***/
27 bool objc_init (void);
28 const char *objc_printable_name (tree, int);
29 tree objc_fold_obj_type_ref (tree, tree);
30 int objc_gimplify_expr (tree *, gimple_seq *, gimple_seq *);
31 tree objc_eh_runtime_type (tree);
32 tree objc_eh_personality (void);
34 /* NB: The remaining public functions are prototyped in c-common.h, for the
35 benefit of stub-objc.c and objc-act.c. */
37 /* Objective-C structures */
39 #define CLASS_LANG_SLOT_ELTS 7
40 #define PROTOCOL_LANG_SLOT_ELTS 7
41 #define OBJC_INFO_SLOT_ELTS 2
44 #define KEYWORD_KEY_NAME(DECL) ((DECL)->decl_minimal.name)
45 #define KEYWORD_ARG_NAME(DECL) ((DECL)->decl_non_common.arguments)
47 /* INSTANCE_METHOD_DECL, CLASS_METHOD_DECL */
48 #define METHOD_SEL_NAME(DECL) ((DECL)->decl_minimal.name)
49 #define METHOD_SEL_ARGS(DECL) ((DECL)->decl_non_common.arguments)
50 #define METHOD_ADD_ARGS(DECL) ((DECL)->decl_non_common.result)
51 #define METHOD_ADD_ARGS_ELLIPSIS_P(DECL) ((DECL)->decl_common.lang_flag_0)
52 #define METHOD_DEFINITION(DECL) ((DECL)->decl_common.initial)
53 #define METHOD_ENCODING(DECL) ((DECL)->decl_minimal.context)
54 #define METHOD_TYPE_ATTRIBUTES(DECL) ((DECL)->decl_common.abstract_origin)
55 #define METHOD_PROPERTY_CONTEXT(DECL) ((DECL)->decl_common.size_unit)
58 /* PROPERTY_DECL. A PROPERTY_DECL repesents a @property declaration
59 (when attached to the list of properties of an interface) or a
60 @synthesize or @dynamic declaration (when attached to the list of
61 properties of an implementation). */
63 /* TREE_TYPE is the type (int, float, etc) of the property. */
65 /* DECL_ARTIFICIAL is set to 1 if the PROPERTY_DECL is an artificial
66 property declaration created when the dot-syntax object.component
67 is used with no actual @property matching the component, but a
68 valid getter/setter. */
70 /* PROPERTY_NAME is the name of the property. */
71 #define PROPERTY_NAME(DECL) DECL_NAME(DECL)
73 /* PROPERTY_GETTER_NAME is the identifier of the getter method. */
74 #define PROPERTY_GETTER_NAME(DECL) ((DECL)->decl_non_common.arguments)
76 /* PROPERTY_SETTER_NAME is the identifier of the setter method. */
77 #define PROPERTY_SETTER_NAME(DECL) ((DECL)->decl_non_common.result)
79 /* PROPERTY_READONLY can be 0 or 1. */
80 #define PROPERTY_READONLY(DECL) DECL_LANG_FLAG_0 (DECL)
82 /* PROPERTY_NONATOMIC can be 0 or 1. */
83 #define PROPERTY_NONATOMIC(DECL) DECL_LANG_FLAG_1 (DECL)
85 typedef enum objc_property_assign_semantics {
86 OBJC_PROPERTY_ASSIGN = 1,
87 OBJC_PROPERTY_RETAIN = 2,
88 OBJC_PROPERTY_COPY = 3
89 } objc_property_assign_semantics;
91 /* PROPERTY_ASSIGN_SEMANTICS can be OBJC_PROPERTY_ASSIGN,
92 OBJC_PROPERTY_RETAIN or OBJC_PROPERTY_COPY. We need an integer to
93 store it, so we hijack the alignment, that properties don't
95 #define PROPERTY_ASSIGN_SEMANTICS(DECL) ((DECL)->decl_common.align)
97 /* PROPERTY_IVAR_NAME is the identifier of the instance variable.
98 This is set only if the PROPERTY_DECL represents a @synthesize;
99 otherwise, it is set to TREE_NULL. */
100 #define PROPERTY_IVAR_NAME(DECL) ((DECL)->decl_common.initial)
102 /* PROPERTY_DYNAMIC can be 0 or 1. This is 1 if the PROPERTY_DECL
103 represents a @dynamic (or if it is a @property for which a @dynamic
104 declaration has been parsed); otherwise, it is set to 0. */
105 #define PROPERTY_DYNAMIC(DECL) DECL_LANG_FLAG_2 (DECL)
107 /* PROPERTY_HAS_NO_GETTER can be 0 or 1. Normally it is 0, but if
108 this is an artificial PROPERTY_DECL that we generate even without a
109 getter, it is set to 1. */
110 #define PROPERTY_HAS_NO_GETTER(DECL) DECL_LANG_FLAG_3 (DECL)
112 /* PROPERTY_HAS_NO_SETTER can be 0 or 1. Normally it is 0, but if
113 this is an artificial PROPERTY_DECL that we generate even without a
114 setter, it is set to 1. */
115 #define PROPERTY_HAS_NO_SETTER(DECL) DECL_LANG_FLAG_4 (DECL)
117 /* PROPERTY_REF. A PROPERTY_REF represents an 'object.property'
118 expression. It is normally used for property access, but when
119 the Objective-C 2.0 "dot-syntax" (object.component) is used
120 with no matching property, a PROPERTY_REF is still created to
121 represent it, with an artificial PROPERTY_DECL. */
123 /* PROPERTY_REF_OBJECT is the object whose property we are
125 #define PROPERTY_REF_OBJECT(NODE) TREE_OPERAND (PROPERTY_REF_CHECK (NODE), 0)
127 /* PROPERTY_REF_PROPERTY_DECL is the PROPERTY_DECL for the property
128 used in the expression. From it, you can get the property type,
129 and the getter/setter names. This PROPERTY_DECL could be artificial
130 if we are processing an 'object.component' syntax with no matching
131 declared property. */
132 #define PROPERTY_REF_PROPERTY_DECL(NODE) TREE_OPERAND (PROPERTY_REF_CHECK (NODE), 1)
135 /* CLASS_INTERFACE_TYPE, CLASS_IMPLEMENTATION_TYPE,
136 CATEGORY_INTERFACE_TYPE, CATEGORY_IMPLEMENTATION_TYPE,
137 PROTOCOL_INTERFACE_TYPE */
138 #define CLASS_NAME(CLASS) ((CLASS)->type.name)
139 #define CLASS_SUPER_NAME(CLASS) (TYPE_CHECK (CLASS)->type.context)
140 #define CLASS_IVARS(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 0)
141 #define CLASS_RAW_IVARS(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 1)
142 #define CLASS_NST_METHODS(CLASS) ((CLASS)->type.minval)
143 #define CLASS_CLS_METHODS(CLASS) ((CLASS)->type.maxval)
144 #define CLASS_STATIC_TEMPLATE(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 2)
145 #define CLASS_CATEGORY_LIST(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 3)
146 #define CLASS_PROTOCOL_LIST(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 4)
147 #define TOTAL_CLASS_RAW_IVARS(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 5)
149 #define PROTOCOL_NAME(CLASS) ((CLASS)->type.name)
150 #define PROTOCOL_LIST(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 0)
151 #define PROTOCOL_NST_METHODS(CLASS) ((CLASS)->type.minval)
152 #define PROTOCOL_CLS_METHODS(CLASS) ((CLASS)->type.maxval)
153 #define PROTOCOL_FORWARD_DECL(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 1)
154 #define PROTOCOL_DEFINED(CLASS) TREE_USED (CLASS)
155 #define PROTOCOL_OPTIONAL_CLS_METHODS(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 2)
156 #define PROTOCOL_OPTIONAL_NST_METHODS(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 3)
158 /* For CATEGORY_INTERFACE_TYPE, CLASS_INTERFACE_TYPE or PROTOCOL_INTERFACE_TYPE */
159 #define CLASS_PROPERTY_DECL(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 6)
160 /* For CLASS_IMPLEMENTATION_TYPE or CATEGORY_IMPLEMENTATION_TYPE. */
161 #define IMPL_PROPERTY_DECL(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 6)
163 /* ObjC-specific information pertaining to RECORD_TYPEs are stored in
164 the LANG_SPECIFIC structures, which may itself need allocating first. */
166 /* The following three macros must be overridden (in objcp/objcp-decl.h)
167 for Objective-C++. */
168 #define TYPE_OBJC_INFO(TYPE) TYPE_LANG_SPECIFIC (TYPE)->objc_info
169 #define SIZEOF_OBJC_TYPE_LANG_SPECIFIC sizeof (struct lang_type)
170 #define ALLOC_OBJC_TYPE_LANG_SPECIFIC(NODE) \
172 TYPE_LANG_SPECIFIC (NODE) \
173 = ggc_alloc_cleared_lang_type (sizeof (struct lang_type)); \
176 #define TYPE_HAS_OBJC_INFO(TYPE) \
177 (TYPE_LANG_SPECIFIC (TYPE) && TYPE_OBJC_INFO (TYPE))
178 #define TYPE_OBJC_INTERFACE(TYPE) TREE_VEC_ELT (TYPE_OBJC_INFO (TYPE), 0)
179 #define TYPE_OBJC_PROTOCOL_LIST(TYPE) TREE_VEC_ELT (TYPE_OBJC_INFO (TYPE), 1)
182 #define INIT_TYPE_OBJC_INFO(TYPE) \
185 if (!TYPE_LANG_SPECIFIC (TYPE)) \
186 ALLOC_OBJC_TYPE_LANG_SPECIFIC(TYPE); \
187 if (!TYPE_OBJC_INFO (TYPE)) \
188 TYPE_OBJC_INFO (TYPE) \
189 = make_tree_vec (OBJC_INFO_SLOT_ELTS); \
192 #define DUP_TYPE_OBJC_INFO(DST, SRC) \
195 ALLOC_OBJC_TYPE_LANG_SPECIFIC(DST); \
196 if (TYPE_LANG_SPECIFIC (SRC)) \
197 memcpy (TYPE_LANG_SPECIFIC (DST), \
198 TYPE_LANG_SPECIFIC (SRC), \
199 SIZEOF_OBJC_TYPE_LANG_SPECIFIC); \
200 TYPE_OBJC_INFO (DST) \
201 = make_tree_vec (OBJC_INFO_SLOT_ELTS); \
205 #define TYPED_OBJECT(TYPE) \
206 (TREE_CODE (TYPE) == RECORD_TYPE \
207 && TYPE_HAS_OBJC_INFO (TYPE) \
208 && TYPE_OBJC_INTERFACE (TYPE))
209 #define OBJC_TYPE_NAME(TYPE) TYPE_NAME(TYPE)
210 #define OBJC_SET_TYPE_NAME(TYPE, NAME) (TYPE_NAME (TYPE) = NAME)
212 /* Hash tables to manage the global pool of method prototypes. */
214 typedef struct hashed_entry *hash;
215 typedef struct hashed_attribute *attr;
217 struct GTY(()) hashed_attribute {
221 struct GTY(()) hashed_entry {
227 extern GTY ((length ("SIZEHASHTABLE"))) hash *nst_method_hash_list;
228 extern GTY ((length ("SIZEHASHTABLE"))) hash *cls_method_hash_list;
230 extern GTY ((length ("SIZEHASHTABLE"))) hash *cls_name_hash_list;
231 extern GTY ((length ("SIZEHASHTABLE"))) hash *als_name_hash_list;
233 #define SIZEHASHTABLE 257
235 /* Objective-C/Objective-C++ @implementation list. */
237 struct GTY(()) imp_entry {
238 struct imp_entry *next;
241 tree class_decl; /* _OBJC_CLASS_<my_name>; */
242 tree meta_decl; /* _OBJC_METACLASS_<my_name>; */
243 BOOL_BITFIELD has_cxx_cdtors : 1;
246 extern GTY(()) struct imp_entry *imp_list;
247 extern GTY(()) int imp_count; /* `@implementation' */
248 extern GTY(()) int cat_count; /* `@category' */
250 extern GTY(()) objc_ivar_visibility_kind objc_ivar_visibility;
252 /* Objective-C/Objective-C++ global tree enumeration. */
257 OCTI_STATIC_NST_DECL,
264 OCTI_UMSG_SUPER_DECL,
265 OCTI_UMSG_STRET_DECL,
266 OCTI_UMSG_SUPER_STRET_DECL,
268 OCTI_GET_MCLASS_DECL,
282 OCTI_CLS_NAMES_CHAIN,
283 OCTI_METH_VAR_NAMES_CHAIN,
284 OCTI_METH_VAR_TYPES_CHAIN,
309 OCTI_UUCLS_SUPER_REF,
312 OCTI_METH_LIST_TEMPL,
313 OCTI_METH_PROTO_LIST_TEMPL,
314 OCTI_IVAR_LIST_TEMPL,
320 OCTI_METH_PROTO_TEMPL,
321 OCTI_FUNCTION1_TEMPL,
322 OCTI_FUNCTION2_TEMPL,
330 OCTI_CNST_STR_GLOB_ID,
331 OCTI_STRING_CLASS_DECL,
332 OCTI_INTERNAL_CNST_STR_TYPE,
334 OCTI_UMSG_NONNIL_DECL,
335 OCTI_UMSG_NONNIL_STRET_DECL,
337 OCTI_EXCEPTION_EXTRACT_DECL,
338 OCTI_EXCEPTION_TRY_ENTER_DECL,
339 OCTI_EXCEPTION_TRY_EXIT_DECL,
340 OCTI_EXCEPTION_MATCH_DECL,
341 OCTI_EXCEPTION_THROW_DECL,
342 OCTI_SYNC_ENTER_DECL,
346 OCTI_STACK_EXCEPTION_DATA_DECL,
347 OCTI_LOCAL_EXCEPTION_DECL,
348 OCTI_RETHROW_EXCEPTION_DECL,
353 OCTI_ASSIGN_IVAR_DECL,
354 OCTI_ASSIGN_IVAR_FAST_DECL,
355 OCTI_ASSIGN_GLOBAL_DECL,
356 OCTI_ASSIGN_STRONGCAST_DECL,
358 OCTI_FAST_ENUM_STATE_TEMP,
359 OCTI_ENUM_MUTATION_DECL,
361 OCTI_GET_PROPERTY_DECL,
362 OCTI_SET_PROPERTY_DECL,
363 OCTI_COPY_STRUCT_DECL,
364 OCTI_GET_PROPERTY_STRUCT_DECL,
365 OCTI_SET_PROPERTY_STRUCT_DECL,
370 extern GTY(()) tree objc_global_trees[OCTI_MAX];
372 /* List of classes with list of their static instances. */
373 #define objc_static_instances objc_global_trees[OCTI_STATIC_NST]
375 /* The declaration of the array administrating the static instances. */
376 #define static_instances_decl objc_global_trees[OCTI_STATIC_NST_DECL]
378 /* Some commonly used instances of "identifier_node". */
380 #define self_id objc_global_trees[OCTI_SELF_ID]
381 #define ucmd_id objc_global_trees[OCTI_UCMD_ID]
383 #define self_decl objc_global_trees[OCTI_SELF_DECL]
384 #define umsg_decl objc_global_trees[OCTI_UMSG_DECL]
385 #define umsg_fast_decl objc_global_trees[OCTI_UMSG_FAST_DECL]
386 #define umsg_super_decl objc_global_trees[OCTI_UMSG_SUPER_DECL]
387 #define umsg_stret_decl objc_global_trees[OCTI_UMSG_STRET_DECL]
388 #define umsg_super_stret_decl objc_global_trees[OCTI_UMSG_SUPER_STRET_DECL]
389 #define objc_get_class_decl objc_global_trees[OCTI_GET_CLASS_DECL]
390 #define objc_get_meta_class_decl \
391 objc_global_trees[OCTI_GET_MCLASS_DECL]
393 #define objc_super_type objc_global_trees[OCTI_SUPER_TYPE]
394 #define objc_selector_type objc_global_trees[OCTI_SEL_TYPE]
395 #define objc_object_type objc_global_trees[OCTI_ID_TYPE]
396 #define objc_class_type objc_global_trees[OCTI_CLS_TYPE]
397 #define objc_instance_type objc_global_trees[OCTI_NST_TYPE]
398 #define objc_protocol_type objc_global_trees[OCTI_PROTO_TYPE]
400 /* Type checking macros. */
402 #define IS_ID(TYPE) \
403 (TREE_CODE (TYPE) == POINTER_TYPE \
404 && (TYPE_MAIN_VARIANT (TREE_TYPE (TYPE)) \
405 == TREE_TYPE (objc_object_type)))
406 #define IS_CLASS(TYPE) \
407 (TREE_CODE (TYPE) == POINTER_TYPE \
408 && (TYPE_MAIN_VARIANT (TREE_TYPE (TYPE)) \
409 == TREE_TYPE (objc_class_type)))
410 #define IS_PROTOCOL_QUALIFIED_UNTYPED(TYPE) \
411 ((IS_ID (TYPE) || IS_CLASS (TYPE)) \
412 && TYPE_HAS_OBJC_INFO (TREE_TYPE (TYPE)) \
413 && TYPE_OBJC_PROTOCOL_LIST (TREE_TYPE (TYPE)))
414 #define IS_SUPER(TYPE) \
415 (TREE_CODE (TYPE) == POINTER_TYPE \
416 && TREE_TYPE (TYPE) == objc_super_template)
418 #define interface_chain objc_global_trees[OCTI_INTF_CHAIN]
419 #define protocol_chain objc_global_trees[OCTI_PROTO_CHAIN]
420 #define implemented_classes objc_global_trees[OCTI_IMPL_CHAIN]
422 /* Chains to manage selectors that are referenced and defined in the
425 #define cls_ref_chain objc_global_trees[OCTI_CLS_REF_CHAIN] /* Classes referenced. */
426 #define sel_ref_chain objc_global_trees[OCTI_SEL_REF_CHAIN] /* Selectors referenced. */
427 #define objc_ivar_chain objc_global_trees[OCTI_IVAR_CHAIN]
429 /* Chains to manage uniquing of strings. */
431 #define class_names_chain objc_global_trees[OCTI_CLS_NAMES_CHAIN]
432 #define meth_var_names_chain objc_global_trees[OCTI_METH_VAR_NAMES_CHAIN]
433 #define meth_var_types_chain objc_global_trees[OCTI_METH_VAR_TYPES_CHAIN]
436 /* Backend data declarations. */
438 #define UOBJC_SYMBOLS_decl objc_global_trees[OCTI_SYMBOLS_DECL]
439 #define UOBJC_INSTANCE_VARIABLES_decl objc_global_trees[OCTI_NST_VAR_DECL]
440 #define UOBJC_CLASS_VARIABLES_decl objc_global_trees[OCTI_CLS_VAR_DECL]
441 #define UOBJC_INSTANCE_METHODS_decl objc_global_trees[OCTI_NST_METH_DECL]
442 #define UOBJC_CLASS_METHODS_decl objc_global_trees[OCTI_CLS_METH_DECL]
443 #define UOBJC_CLASS_decl objc_global_trees[OCTI_CLS_DECL]
444 #define UOBJC_METACLASS_decl objc_global_trees[OCTI_MCLS_DECL]
445 #define UOBJC_SELECTOR_TABLE_decl objc_global_trees[OCTI_SEL_TABLE_DECL]
446 #define UOBJC_MODULES_decl objc_global_trees[OCTI_MODULES_DECL]
447 #define GNU_INIT_decl objc_global_trees[OCTI_GNU_INIT_DECL]
449 /* The following are used when compiling a class implementation.
450 implementation_template will normally be an interface, however if
451 none exists this will be equal to objc_implementation_context...it is
452 set in start_class. */
454 #define objc_interface_context objc_global_trees[OCTI_INTF_CTX]
455 #define objc_implementation_context objc_global_trees[OCTI_IMPL_CTX]
456 #define objc_method_context objc_global_trees[OCTI_METH_CTX]
457 #define objc_ivar_context objc_global_trees[OCTI_IVAR_CTX]
459 #define implementation_template objc_global_trees[OCTI_IMPL_TEMPL]
460 #define objc_class_template objc_global_trees[OCTI_CLS_TEMPL]
461 #define objc_category_template objc_global_trees[OCTI_CAT_TEMPL]
462 #define uprivate_record objc_global_trees[OCTI_UPRIV_REC]
463 #define objc_protocol_template objc_global_trees[OCTI_PROTO_TEMPL]
464 #define objc_selector_template objc_global_trees[OCTI_SEL_TEMPL]
465 #define ucls_super_ref objc_global_trees[OCTI_UCLS_SUPER_REF]
466 #define uucls_super_ref objc_global_trees[OCTI_UUCLS_SUPER_REF]
468 #define umsg_nonnil_decl objc_global_trees[OCTI_UMSG_NONNIL_DECL]
469 #define umsg_nonnil_stret_decl objc_global_trees[OCTI_UMSG_NONNIL_STRET_DECL]
470 #define objc_storage_class objc_global_trees[OCTI_STORAGE_CLS]
471 #define objc_exception_extract_decl \
472 objc_global_trees[OCTI_EXCEPTION_EXTRACT_DECL]
473 #define objc_exception_try_enter_decl \
474 objc_global_trees[OCTI_EXCEPTION_TRY_ENTER_DECL]
475 #define objc_exception_try_exit_decl \
476 objc_global_trees[OCTI_EXCEPTION_TRY_EXIT_DECL]
477 #define objc_exception_match_decl \
478 objc_global_trees[OCTI_EXCEPTION_MATCH_DECL]
479 #define objc_exception_throw_decl \
480 objc_global_trees[OCTI_EXCEPTION_THROW_DECL]
481 #define objc_sync_enter_decl objc_global_trees[OCTI_SYNC_ENTER_DECL]
482 #define objc_sync_exit_decl objc_global_trees[OCTI_SYNC_EXIT_DECL]
483 #define objc_exception_data_template \
484 objc_global_trees[OCTI_EXCDATA_TEMPL]
485 #define objc_setjmp_decl objc_global_trees[OCTI_SETJMP_DECL]
486 #define objc_stack_exception_data \
487 objc_global_trees[OCTI_STACK_EXCEPTION_DATA_DECL]
488 #define objc_caught_exception objc_global_trees[OCTI_LOCAL_EXCEPTION_DECL]
489 #define objc_rethrow_exception objc_global_trees[OCTI_RETHROW_EXCEPTION_DECL]
490 #define objc_eval_once objc_global_trees[OCTI_EVAL_ONCE_DECL]
491 #define objc_catch_type objc_global_trees[OCTI_CATCH_TYPE]
493 #define execclass_decl objc_global_trees[OCTI_EXECCLASS_DECL]
495 #define objc_assign_ivar_decl objc_global_trees[OCTI_ASSIGN_IVAR_DECL]
496 #define objc_assign_ivar_fast_decl \
497 objc_global_trees[OCTI_ASSIGN_IVAR_FAST_DECL]
498 #define objc_assign_global_decl objc_global_trees[OCTI_ASSIGN_GLOBAL_DECL]
499 #define objc_assign_strong_cast_decl \
500 objc_global_trees[OCTI_ASSIGN_STRONGCAST_DECL]
502 #define objc_method_template objc_global_trees[OCTI_METH_TEMPL]
503 #define objc_ivar_template objc_global_trees[OCTI_IVAR_TEMPL]
504 #define objc_method_list_ptr objc_global_trees[OCTI_METH_LIST_TEMPL]
505 #define objc_method_proto_list_ptr \
506 objc_global_trees[OCTI_METH_PROTO_LIST_TEMPL]
507 #define objc_ivar_list_ptr objc_global_trees[OCTI_IVAR_LIST_TEMPL]
508 #define objc_symtab_template objc_global_trees[OCTI_SYMTAB_TEMPL]
509 #define objc_module_template objc_global_trees[OCTI_MODULE_TEMPL]
510 #define objc_super_template objc_global_trees[OCTI_SUPER_TEMPL]
511 #define objc_object_reference objc_global_trees[OCTI_OBJ_REF]
512 #define objc_class_reference objc_global_trees[OCTI_CLS_REF]
513 #define objc_method_prototype_template \
514 objc_global_trees[OCTI_METH_PROTO_TEMPL]
515 #define function1_template objc_global_trees[OCTI_FUNCTION1_TEMPL]
516 #define function2_template objc_global_trees[OCTI_FUNCTION2_TEMPL]
518 #define objc_object_id objc_global_trees[OCTI_OBJ_ID]
519 #define objc_class_id objc_global_trees[OCTI_CLS_ID]
520 #define objc_object_name objc_global_trees[OCTI_ID_NAME]
521 #define objc_class_name objc_global_trees[OCTI_CLASS_NAME]
522 #define constant_string_id objc_global_trees[OCTI_CNST_STR_ID]
523 #define constant_string_type objc_global_trees[OCTI_CNST_STR_TYPE]
524 #define constant_string_global_id \
525 objc_global_trees[OCTI_CNST_STR_GLOB_ID]
526 #define string_class_decl objc_global_trees[OCTI_STRING_CLASS_DECL]
527 #define internal_const_str_type objc_global_trees[OCTI_INTERNAL_CNST_STR_TYPE]
528 #define UOBJC_SUPER_decl objc_global_trees[OCTI_SUPER_DECL]
529 #define objc_fast_enumeration_state_template \
530 objc_global_trees[OCTI_FAST_ENUM_STATE_TEMP]
531 #define objc_enumeration_mutation_decl \
532 objc_global_trees[OCTI_ENUM_MUTATION_DECL]
534 /* Declarations of functions used when synthesizing property
536 #define objc_getProperty_decl objc_global_trees[OCTI_GET_PROPERTY_DECL]
537 #define objc_setProperty_decl objc_global_trees[OCTI_SET_PROPERTY_DECL]
538 #define objc_copyStruct_decl objc_global_trees[OCTI_COPY_STRUCT_DECL]
539 #define objc_getPropertyStruct_decl objc_global_trees[OCTI_GET_PROPERTY_STRUCT_DECL]
540 #define objc_setPropertyStruct_decl objc_global_trees[OCTI_SET_PROPERTY_STRUCT_DECL]
543 #endif /* GCC_OBJC_ACT_H */