1/* Stub functions for Objective-C and Objective-C++ routines 2 that are called from within the C and C++ front-ends, 3 respectively. 4 Copyright (C) 1991, 1995, 1997, 1998, 5 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 6 7This file is part of GCC. 8 9GCC is free software; you can redistribute it and/or modify it under 10the terms of the GNU General Public License as published by the Free 11Software Foundation; either version 2, or (at your option) any later 12version. 13 14GCC is distributed in the hope that it will be useful, but WITHOUT ANY 15WARRANTY; without even the implied warranty of MERCHANTABILITY or 16FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17for more details. 18 19You should have received a copy of the GNU General Public License 20along with GCC; see the file COPYING. If not, write to the Free 21Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 2202110-1301, USA. */ 23 24#include "config.h" 25#include "system.h" 26#include "coretypes.h" 27#include "tree.h" 28#include "c-common.h" 29 30tree 31objc_is_class_name (tree ARG_UNUSED (arg)) 32{ 33 return 0; 34} 35 36tree 37objc_is_id (tree ARG_UNUSED (arg)) 38{ 39 return 0; 40} 41 42tree 43objc_is_object_ptr (tree ARG_UNUSED (arg)) 44{ 45 return 0; 46} 47 48tree 49objc_lookup_ivar (tree other, tree ARG_UNUSED (arg)) 50{ 51 /* Just use whatever C/C++ found. */ 52 return other; 53} 54 55void 56objc_check_decl (tree ARG_UNUSED (decl)) 57{ 58} 59 60int 61objc_is_reserved_word (tree ARG_UNUSED (ident)) 62{ 63 return 0; 64} 65 66bool 67objc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp), 68 int ARG_UNUSED (argno), tree ARG_UNUSED (callee)) 69{ 70 return false; 71} 72 73void 74objc_volatilize_decl (tree ARG_UNUSED (decl)) 75{ 76} 77 78bool 79objc_type_quals_match (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp)) 80{ 81 return false; 82} 83 84tree 85objc_rewrite_function_call (tree function, tree ARG_UNUSED (params)) 86{ 87 return function; 88} 89 90tree 91objc_message_selector (void) 92{ 93 return 0; 94} 95 96void 97objc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig)) 98{ 99} 100 101void 102objc_declare_class (tree ARG_UNUSED (list)) 103{ 104} 105 106void 107objc_declare_protocols (tree ARG_UNUSED (list)) 108{ 109} 110 111void 112objc_start_protocol (tree ARG_UNUSED (proto), 113 tree ARG_UNUSED (protorefs)) 114{ 115} 116 117void 118objc_start_class_interface (tree ARG_UNUSED (name), 119 tree ARG_UNUSED (super), 120 tree ARG_UNUSED (protos)) 121{ 122} 123 124void 125objc_start_category_interface (tree ARG_UNUSED (name), 126 tree ARG_UNUSED (categ), 127 tree ARG_UNUSED (protos)) 128{ 129} 130 131void 132objc_continue_interface (void) 133{ 134} 135 136void 137objc_finish_interface (void) 138{ 139} 140 141void 142objc_add_instance_variable (tree ARG_UNUSED (decl)) 143{ 144} 145 146void 147objc_set_visibility (int ARG_UNUSED (vis)) 148{ 149} 150 151void 152objc_set_method_type (enum tree_code ARG_UNUSED (code)) 153{ 154} 155 156void 157objc_start_class_implementation (tree ARG_UNUSED (name), 158 tree ARG_UNUSED (super)) 159{ 160} 161 162void 163objc_start_category_implementation (tree ARG_UNUSED (name), 164 tree ARG_UNUSED (categ)) 165{ 166} 167 168void 169objc_continue_implementation (void) 170{ 171} 172 173void 174objc_clear_super_receiver (void) 175{ 176} 177 178void 179objc_finish_implementation (void) 180{ 181} 182 183void 184objc_add_method_declaration (tree ARG_UNUSED (signature)) 185{ 186} 187 188void 189objc_start_method_definition (tree ARG_UNUSED (signature)) 190{ 191} 192 193void 194objc_finish_method_definition (tree ARG_UNUSED (fndecl)) 195{ 196} 197 198tree 199objc_build_keyword_decl (tree ARG_UNUSED (selector), 200 tree ARG_UNUSED (typename), 201 tree ARG_UNUSED (identifier)) 202{ 203 return 0; 204} 205 206tree 207objc_build_method_signature (tree ARG_UNUSED (rettype), 208 tree ARG_UNUSED (selectors), 209 tree ARG_UNUSED (optparms), 210 bool ARG_UNUSED (ellipsis)) 211{ 212 return 0; 213} 214 215tree 216objc_build_encode_expr (tree ARG_UNUSED (expr)) 217{ 218 return 0; 219} 220 221tree 222objc_build_protocol_expr (tree ARG_UNUSED (expr)) 223{ 224 return 0; 225} 226 227tree 228objc_build_selector_expr (tree ARG_UNUSED (expr)) 229{ 230 return 0; 231} 232 233tree 234objc_build_message_expr (tree ARG_UNUSED (expr)) 235{ 236 return 0; 237} 238 239tree 240objc_build_string_object (tree ARG_UNUSED (str)) 241{ 242 return 0; 243} 244 245tree 246objc_get_class_reference (tree ARG_UNUSED (name)) 247{ 248 return 0; 249} 250 251tree 252objc_get_protocol_qualified_type (tree ARG_UNUSED (name), 253 tree ARG_UNUSED (protos)) 254{ 255 return 0; 256} 257 258int 259objc_static_init_needed_p (void) 260{ 261 return 0; 262} 263 264tree 265objc_generate_static_init_call (tree ARG_UNUSED (ctors)) 266{ 267 return 0; 268} 269 270int 271objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier)) 272{ 273 return 1; 274} 275 276tree 277objc_get_class_ivars (tree ARG_UNUSED (name)) 278{ 279 return 0; 280} 281 282tree 283objc_build_throw_stmt (tree ARG_UNUSED (expr)) 284{ 285 return 0; 286} 287 288tree 289objc_build_synchronized (location_t ARG_UNUSED (start_locus), 290 tree ARG_UNUSED (mutex), tree ARG_UNUSED (body)) 291{ 292 return 0; 293} 294 295void 296objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body)) 297{ 298} 299 300void 301objc_begin_catch_clause (tree ARG_UNUSED (decl)) 302{ 303} 304 305void 306objc_finish_catch_clause (void) 307{ 308} 309 310void 311objc_build_finally_clause (location_t ARG_UNUSED (finally_locus), 312 tree ARG_UNUSED (body)) 313{ 314} 315 316tree 317objc_finish_try_stmt (void) 318{ 319 return 0; 320} 321 322tree 323objc_generate_write_barrier (tree ARG_UNUSED (lhs), 324 enum tree_code ARG_UNUSED (modifycode), 325 tree ARG_UNUSED (rhs)) 326{ 327 return 0; 328} 329