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, 1999, 2000, 2001, 2002, 2003, 5 2004, 2005, 2007, 2009 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 3, 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 COPYING3. If not see 21<http://www.gnu.org/licenses/>. */ 22 23#include "config.h" 24#include "system.h" 25#include "coretypes.h" 26#include "tree.h" 27#include "c-common.h" 28 29tree 30objc_is_class_name (tree ARG_UNUSED (arg)) 31{ 32 return 0; 33} 34 35tree 36objc_is_id (tree ARG_UNUSED (arg)) 37{ 38 return 0; 39} 40 41tree 42objc_is_object_ptr (tree ARG_UNUSED (arg)) 43{ 44 return 0; 45} 46 47tree 48objc_lookup_ivar (tree other, tree ARG_UNUSED (arg)) 49{ 50 /* Just use whatever C/C++ found. */ 51 return other; 52} 53 54void 55objc_check_decl (tree ARG_UNUSED (decl)) 56{ 57} 58 59int 60objc_is_reserved_word (tree ARG_UNUSED (ident)) 61{ 62 return 0; 63} 64 65bool 66objc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp), 67 int ARG_UNUSED (argno), tree ARG_UNUSED (callee)) 68{ 69 return false; 70} 71 72void 73objc_volatilize_decl (tree ARG_UNUSED (decl)) 74{ 75} 76 77bool 78objc_type_quals_match (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp)) 79{ 80 return false; 81} 82 83tree 84objc_rewrite_function_call (tree function, tree ARG_UNUSED (first_param)) 85{ 86 return function; 87} 88 89tree 90objc_message_selector (void) 91{ 92 return 0; 93} 94 95void 96objc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig)) 97{ 98} 99 100void 101objc_declare_class (tree ARG_UNUSED (list)) 102{ 103} 104 105void 106objc_declare_protocols (tree ARG_UNUSED (list)) 107{ 108} 109 110void 111objc_start_protocol (tree ARG_UNUSED (proto), 112 tree ARG_UNUSED (protorefs)) 113{ 114} 115 116void 117objc_start_class_interface (tree ARG_UNUSED (name), 118 tree ARG_UNUSED (super), 119 tree ARG_UNUSED (protos)) 120{ 121} 122 123void 124objc_start_category_interface (tree ARG_UNUSED (name), 125 tree ARG_UNUSED (categ), 126 tree ARG_UNUSED (protos)) 127{ 128} 129 130void 131objc_continue_interface (void) 132{ 133} 134 135void 136objc_finish_interface (void) 137{ 138} 139 140void 141objc_add_instance_variable (tree ARG_UNUSED (decl)) 142{ 143} 144 145void 146objc_set_visibility (int ARG_UNUSED (vis)) 147{ 148} 149 150void 151objc_set_method_type (enum tree_code ARG_UNUSED (code)) 152{ 153} 154 155void 156objc_start_class_implementation (tree ARG_UNUSED (name), 157 tree ARG_UNUSED (super)) 158{ 159} 160 161void 162objc_start_category_implementation (tree ARG_UNUSED (name), 163 tree ARG_UNUSED (categ)) 164{ 165} 166 167void 168objc_continue_implementation (void) 169{ 170} 171 172void 173objc_clear_super_receiver (void) 174{ 175} 176 177void 178objc_finish_implementation (void) 179{ 180} 181 182void 183objc_add_method_declaration (tree ARG_UNUSED (signature)) 184{ 185} 186 187void 188objc_start_method_definition (tree ARG_UNUSED (signature)) 189{ 190} 191 192void 193objc_finish_method_definition (tree ARG_UNUSED (fndecl)) 194{ 195} 196 197tree 198objc_build_keyword_decl (tree ARG_UNUSED (selector), 199 tree ARG_UNUSED (type), 200 tree ARG_UNUSED (identifier)) 201{ 202 return 0; 203} 204 205tree 206objc_build_method_signature (tree ARG_UNUSED (rettype), 207 tree ARG_UNUSED (selectors), 208 tree ARG_UNUSED (optparms), 209 bool ARG_UNUSED (ellipsis)) 210{ 211 return 0; 212} 213 214tree 215objc_build_encode_expr (tree ARG_UNUSED (expr)) 216{ 217 return 0; 218} 219 220tree 221objc_build_protocol_expr (tree ARG_UNUSED (expr)) 222{ 223 return 0; 224} 225 226tree 227objc_build_selector_expr (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr)) 228{ 229 return 0; 230} 231 232tree 233objc_build_message_expr (tree ARG_UNUSED (expr)) 234{ 235 return 0; 236} 237 238tree 239objc_build_string_object (tree ARG_UNUSED (str)) 240{ 241 return 0; 242} 243 244tree 245objc_get_class_reference (tree ARG_UNUSED (name)) 246{ 247 return 0; 248} 249 250tree 251objc_get_protocol_qualified_type (tree ARG_UNUSED (name), 252 tree ARG_UNUSED (protos)) 253{ 254 return 0; 255} 256 257int 258objc_static_init_needed_p (void) 259{ 260 return 0; 261} 262 263tree 264objc_generate_static_init_call (tree ARG_UNUSED (ctors)) 265{ 266 return 0; 267} 268 269int 270objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier)) 271{ 272 return 1; 273} 274 275tree 276objc_get_class_ivars (tree ARG_UNUSED (name)) 277{ 278 return 0; 279} 280 281tree 282objc_build_throw_stmt (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr)) 283{ 284 return 0; 285} 286 287tree 288objc_build_synchronized (location_t ARG_UNUSED (start_locus), 289 tree ARG_UNUSED (mutex), tree ARG_UNUSED (body)) 290{ 291 return 0; 292} 293 294void 295objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body)) 296{ 297} 298 299void 300objc_begin_catch_clause (tree ARG_UNUSED (decl)) 301{ 302} 303 304void 305objc_finish_catch_clause (void) 306{ 307} 308 309void 310objc_build_finally_clause (location_t ARG_UNUSED (finally_locus), 311 tree ARG_UNUSED (body)) 312{ 313} 314 315tree 316objc_finish_try_stmt (void) 317{ 318 return 0; 319} 320 321tree 322objc_generate_write_barrier (tree ARG_UNUSED (lhs), 323 enum tree_code ARG_UNUSED (modifycode), 324 tree ARG_UNUSED (rhs)) 325{ 326 return 0; 327} 328