1 /* Stub functions for Objective-C and Objective-C++ routines
2 that are called from within the C and C++ front-ends,
4 Copyright (C) 1991, 1995, 1997, 1998,
5 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
7 This file is part of GCC.
9 GCC is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free
11 Software Foundation; either version 2, or (at your option) any later
14 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING. If not, write to the Free
21 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
26 #include "coretypes.h"
31 objc_is_class_name (tree
ARG_UNUSED (arg
))
37 objc_is_id (tree
ARG_UNUSED (arg
))
43 objc_is_object_ptr (tree
ARG_UNUSED (arg
))
49 objc_lookup_ivar (tree other
, tree
ARG_UNUSED (arg
))
51 /* Just use whatever C/C++ found. */
56 objc_check_decl (tree
ARG_UNUSED (decl
))
61 objc_is_reserved_word (tree
ARG_UNUSED (ident
))
67 objc_compare_types (tree
ARG_UNUSED (ltyp
), tree
ARG_UNUSED (rtyp
),
68 int ARG_UNUSED (argno
), tree
ARG_UNUSED (callee
))
74 objc_volatilize_decl (tree
ARG_UNUSED (decl
))
79 objc_type_quals_match (tree
ARG_UNUSED (ltyp
), tree
ARG_UNUSED (rtyp
))
85 objc_rewrite_function_call (tree function
, tree
ARG_UNUSED (params
))
91 objc_message_selector (void)
97 objc_declare_alias (tree
ARG_UNUSED (alias
), tree
ARG_UNUSED (orig
))
102 objc_declare_class (tree
ARG_UNUSED (list
))
107 objc_declare_protocols (tree
ARG_UNUSED (list
))
112 objc_start_protocol (tree
ARG_UNUSED (proto
),
113 tree
ARG_UNUSED (protorefs
))
118 objc_start_class_interface (tree
ARG_UNUSED (name
),
119 tree
ARG_UNUSED (super
),
120 tree
ARG_UNUSED (protos
))
125 objc_start_category_interface (tree
ARG_UNUSED (name
),
126 tree
ARG_UNUSED (categ
),
127 tree
ARG_UNUSED (protos
))
132 objc_continue_interface (void)
137 objc_finish_interface (void)
142 objc_add_instance_variable (tree
ARG_UNUSED (decl
))
147 objc_set_visibility (int ARG_UNUSED (vis
))
152 objc_set_method_type (enum tree_code
ARG_UNUSED (code
))
157 objc_start_class_implementation (tree
ARG_UNUSED (name
),
158 tree
ARG_UNUSED (super
))
163 objc_start_category_implementation (tree
ARG_UNUSED (name
),
164 tree
ARG_UNUSED (categ
))
169 objc_continue_implementation (void)
174 objc_clear_super_receiver (void)
179 objc_finish_implementation (void)
184 objc_add_method_declaration (tree
ARG_UNUSED (signature
))
189 objc_start_method_definition (tree
ARG_UNUSED (signature
))
194 objc_finish_method_definition (tree
ARG_UNUSED (fndecl
))
199 objc_build_keyword_decl (tree
ARG_UNUSED (selector
),
200 tree
ARG_UNUSED (typename
),
201 tree
ARG_UNUSED (identifier
))
207 objc_build_method_signature (tree
ARG_UNUSED (rettype
),
208 tree
ARG_UNUSED (selectors
),
209 tree
ARG_UNUSED (optparms
),
210 bool ARG_UNUSED (ellipsis
))
216 objc_build_encode_expr (tree
ARG_UNUSED (expr
))
222 objc_build_protocol_expr (tree
ARG_UNUSED (expr
))
228 objc_build_selector_expr (tree
ARG_UNUSED (expr
))
234 objc_build_message_expr (tree
ARG_UNUSED (expr
))
240 objc_build_string_object (tree
ARG_UNUSED (str
))
246 objc_get_class_reference (tree
ARG_UNUSED (name
))
252 objc_get_protocol_qualified_type (tree
ARG_UNUSED (name
),
253 tree
ARG_UNUSED (protos
))
259 objc_static_init_needed_p (void)
265 objc_generate_static_init_call (tree
ARG_UNUSED (ctors
))
271 objc_is_public (tree
ARG_UNUSED (expr
), tree
ARG_UNUSED (identifier
))
277 objc_get_class_ivars (tree
ARG_UNUSED (name
))
283 objc_build_throw_stmt (tree
ARG_UNUSED (expr
))
289 objc_build_synchronized (location_t
ARG_UNUSED (start_locus
),
290 tree
ARG_UNUSED (mutex
), tree
ARG_UNUSED (body
))
296 objc_begin_try_stmt (location_t
ARG_UNUSED (try_locus
), tree
ARG_UNUSED (body
))
301 objc_begin_catch_clause (tree
ARG_UNUSED (decl
))
306 objc_finish_catch_clause (void)
311 objc_build_finally_clause (location_t
ARG_UNUSED (finally_locus
),
312 tree
ARG_UNUSED (body
))
317 objc_finish_try_stmt (void)
323 objc_generate_write_barrier (tree
ARG_UNUSED (lhs
),
324 enum tree_code
ARG_UNUSED (modifycode
),
325 tree
ARG_UNUSED (rhs
))