annotate gcc/objc/objc-runtime-shared-support.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Support routines shared by all runtimes.
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 Copyright (C) 2011-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 Contributed by Iain Sandoe
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 This file is part of GCC.
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
8 it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
9 the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
10 any later version.
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
15 GNU General Public License for more details.
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
18 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
19 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 #ifndef _OBJC_RUNTIME_SHARED_SUPPORT_H_
kono
parents:
diff changeset
22 #define _OBJC_RUNTIME_SHARED_SUPPORT_H_
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 /* Left in obj-act.c for now... */
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 extern tree objc_start_struct (tree);
kono
parents:
diff changeset
27 extern tree objc_finish_struct (tree, tree);
kono
parents:
diff changeset
28 extern tree add_field_decl (tree, const char *, tree **);
kono
parents:
diff changeset
29 extern tree build_sized_array_type (tree, int);
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 extern tree lookup_interface (tree);
kono
parents:
diff changeset
32 extern tree objc_build_constructor (tree, vec<constructor_elt, va_gc> *);
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 extern tree start_var_decl (tree, const char *);
kono
parents:
diff changeset
35 extern void finish_var_decl (tree, tree);
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 extern tree my_build_string (int, const char *);
kono
parents:
diff changeset
38 extern tree my_build_string_pointer (int, const char *);
kono
parents:
diff changeset
39 extern tree add_objc_string (tree ident, string_section);
kono
parents:
diff changeset
40 extern tree get_objc_string_decl (tree, string_section);
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 extern void add_class_reference (tree);
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 #ifdef OBJCPLUS
kono
parents:
diff changeset
45 extern void objc_start_function (tree, tree, tree, tree);
kono
parents:
diff changeset
46 extern tree objc_get_parm_info (int, tree);
kono
parents:
diff changeset
47 #else
kono
parents:
diff changeset
48 extern void objc_start_function (tree, tree, tree, struct c_arg_info *);
kono
parents:
diff changeset
49 extern struct c_arg_info *objc_get_parm_info (int, tree);
kono
parents:
diff changeset
50 #endif
kono
parents:
diff changeset
51 extern void objc_push_parm (tree);
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 extern tree build_function_type_for_method (tree, tree, int, bool);
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 extern char *objc_build_property_setter_name (tree);
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 /* Stuff that should be migrated to shared support (or some v1-only file). */
kono
parents:
diff changeset
58 extern void build_super_template (void);
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 extern tree objc_build_component_ref (tree, tree);
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 extern tree build_descriptor_table_initializer (tree, tree);
kono
parents:
diff changeset
63 extern tree build_method_prototype_list_template (tree, int);
kono
parents:
diff changeset
64 extern tree build_protocol_initializer (tree, tree, tree, tree, tree);
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 /* Moved or new routines in objc-runtime-shared-support.c */
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 extern tree build_selector (tree);
kono
parents:
diff changeset
69 extern tree build_method_template (void);
kono
parents:
diff changeset
70 extern tree build_method_prototype_template (void);
kono
parents:
diff changeset
71 extern tree build_method_list_template (tree, int);
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 extern tree build_dispatch_table_initializer (tree, tree);
kono
parents:
diff changeset
74 extern void diagnose_missing_method (tree, location_t);
kono
parents:
diff changeset
75 extern void build_next_selector_translation_table (void);
kono
parents:
diff changeset
76 extern void generate_protocol_references (tree);
kono
parents:
diff changeset
77 extern void build_module_descriptor (long, tree);
kono
parents:
diff changeset
78 extern tree build_ivar_list_initializer (tree, tree);
kono
parents:
diff changeset
79 extern tree build_ivar_list_template (tree, int);
kono
parents:
diff changeset
80 extern tree build_ivar_template (void);
kono
parents:
diff changeset
81
kono
parents:
diff changeset
82 extern void generate_strings (void);
kono
parents:
diff changeset
83
kono
parents:
diff changeset
84 extern void dump_interface (FILE *, tree);
kono
parents:
diff changeset
85 extern FILE *gen_declaration_file;
kono
parents:
diff changeset
86
kono
parents:
diff changeset
87 #endif /* _OBJC_RUNTIME_SHARED_SUPPORT_H_ */