]>
Commit | Line | Data |
---|---|---|
c17b85ea | 1 | /* Stub functions for Objective-C and Objective-C++ routines |
2 | that are called from within the C and C++ front-ends, | |
3 | respectively. | |
d353bf18 | 4 | Copyright (C) 1991-2015 Free Software Foundation, Inc. |
c17b85ea | 5 | |
6 | This file is part of GCC. | |
7 | ||
8 | GCC is free software; you can redistribute it and/or modify it under | |
9 | the terms of the GNU General Public License as published by the Free | |
8c4c00c1 | 10 | Software Foundation; either version 3, or (at your option) any later |
c17b85ea | 11 | version. |
12 | ||
13 | GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
14 | WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 | for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
8c4c00c1 | 19 | along with GCC; see the file COPYING3. If not see |
20 | <http://www.gnu.org/licenses/>. */ | |
c17b85ea | 21 | |
22 | #include "config.h" | |
23 | #include "system.h" | |
24 | #include "coretypes.h" | |
b20a8bb4 | 25 | #include "alias.h" |
b20a8bb4 | 26 | #include "symtab.h" |
b20a8bb4 | 27 | #include "flags.h" |
c17b85ea | 28 | #include "tree.h" |
29 | #include "c-common.h" | |
6c536c4f | 30 | #include "c-objc.h" |
c17b85ea | 31 | |
32 | tree | |
99d7d801 | 33 | objc_is_class_name (tree ARG_UNUSED (arg)) |
c17b85ea | 34 | { |
35 | return 0; | |
36 | } | |
37 | ||
e4897e7d | 38 | tree |
39 | objc_is_id (tree ARG_UNUSED (arg)) | |
40 | { | |
41 | return 0; | |
42 | } | |
43 | ||
c17b85ea | 44 | tree |
9a03a746 | 45 | objc_is_object_ptr (tree ARG_UNUSED (arg)) |
c17b85ea | 46 | { |
47 | return 0; | |
48 | } | |
49 | ||
f15f2e56 | 50 | bool objc_diagnose_private_ivar (tree ARG_UNUSED (arg)) |
51 | { | |
52 | return false; | |
53 | } | |
54 | ||
c17b85ea | 55 | tree |
e913c82d | 56 | objc_lookup_ivar (tree other, tree ARG_UNUSED (arg)) |
c17b85ea | 57 | { |
e913c82d | 58 | /* Just use whatever C/C++ found. */ |
59 | return other; | |
c17b85ea | 60 | } |
61 | ||
62 | void | |
9a03a746 | 63 | objc_check_decl (tree ARG_UNUSED (decl)) |
c17b85ea | 64 | { |
65 | } | |
48e1416a | 66 | |
e147d6aa | 67 | void |
68 | objc_check_global_decl (tree ARG_UNUSED (decl)) | |
69 | { | |
70 | } | |
71 | ||
4abfc532 | 72 | tree |
73 | objc_common_type (tree ARG_UNUSED (type1), tree ARG_UNUSED (type2)) | |
74 | { | |
75 | return 0; | |
76 | } | |
77 | ||
34d3c5de | 78 | bool |
79 | objc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp), | |
80 | int ARG_UNUSED (argno), tree ARG_UNUSED (callee)) | |
81 | { | |
82 | return false; | |
83 | } | |
84 | ||
4abfc532 | 85 | bool |
86 | objc_have_common_type (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp), | |
87 | int ARG_UNUSED (argno), tree ARG_UNUSED (callee)) | |
88 | { | |
89 | return false; | |
90 | } | |
91 | ||
34d3c5de | 92 | void |
93 | objc_volatilize_decl (tree ARG_UNUSED (decl)) | |
94 | { | |
95 | } | |
96 | ||
ddb5d39d | 97 | tree |
b9c74b4d | 98 | objc_rewrite_function_call (tree function, tree ARG_UNUSED (first_param)) |
ddb5d39d | 99 | { |
100 | return function; | |
101 | } | |
102 | ||
c17b85ea | 103 | tree |
104 | objc_message_selector (void) | |
48e1416a | 105 | { |
c17b85ea | 106 | return 0; |
107 | } | |
108 | ||
e4897e7d | 109 | void |
110 | objc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig)) | |
111 | { | |
112 | } | |
113 | ||
114 | void | |
29d7200d | 115 | objc_declare_class (tree ARG_UNUSED (identifier)) |
e4897e7d | 116 | { |
117 | } | |
118 | ||
119 | void | |
a758bf7d | 120 | objc_declare_protocol (tree ARG_UNUSED (name), tree ARG_UNUSED (attributes)) |
e4897e7d | 121 | { |
122 | } | |
123 | ||
124 | void | |
125 | objc_start_protocol (tree ARG_UNUSED (proto), | |
a336eb4b | 126 | tree ARG_UNUSED (protorefs), |
127 | tree ARG_UNUSED (attribs)) | |
e4897e7d | 128 | { |
129 | } | |
130 | ||
069761fb | 131 | void |
132 | objc_set_method_opt (bool ARG_UNUSED (optional)) | |
133 | { | |
134 | } | |
135 | ||
e4897e7d | 136 | void |
137 | objc_start_class_interface (tree ARG_UNUSED (name), | |
138 | tree ARG_UNUSED (super), | |
a336eb4b | 139 | tree ARG_UNUSED (protos), |
140 | tree ARG_UNUSED (attribs)) | |
e4897e7d | 141 | { |
142 | } | |
143 | ||
144 | void | |
145 | objc_start_category_interface (tree ARG_UNUSED (name), | |
146 | tree ARG_UNUSED (categ), | |
a336eb4b | 147 | tree ARG_UNUSED (protos), |
148 | tree ARG_UNUSED (attribs)) | |
e4897e7d | 149 | { |
150 | } | |
151 | ||
152 | void | |
153 | objc_continue_interface (void) | |
154 | { | |
155 | } | |
156 | ||
157 | void | |
158 | objc_finish_interface (void) | |
159 | { | |
160 | } | |
161 | ||
162 | void | |
163 | objc_add_instance_variable (tree ARG_UNUSED (decl)) | |
164 | { | |
165 | } | |
166 | ||
167 | void | |
4a8875ed | 168 | objc_set_visibility (objc_ivar_visibility_kind ARG_UNUSED (vis)) |
e4897e7d | 169 | { |
170 | } | |
171 | ||
e4897e7d | 172 | void |
173 | objc_start_class_implementation (tree ARG_UNUSED (name), | |
174 | tree ARG_UNUSED (super)) | |
175 | { | |
176 | } | |
177 | ||
178 | void | |
179 | objc_start_category_implementation (tree ARG_UNUSED (name), | |
180 | tree ARG_UNUSED (categ)) | |
181 | { | |
182 | } | |
183 | ||
184 | void | |
185 | objc_continue_implementation (void) | |
186 | { | |
187 | } | |
188 | ||
2363ef00 | 189 | void |
190 | objc_clear_super_receiver (void) | |
191 | { | |
192 | } | |
193 | ||
e4897e7d | 194 | void |
195 | objc_finish_implementation (void) | |
196 | { | |
197 | } | |
198 | ||
199 | void | |
45b2b110 | 200 | objc_add_method_declaration (bool ARG_UNUSED (is_class_method), |
201 | tree ARG_UNUSED (signature), | |
03fc2271 | 202 | tree ARG_UNUSED (attributes)) |
e4897e7d | 203 | { |
204 | } | |
205 | ||
d4a8fb25 | 206 | bool |
45b2b110 | 207 | objc_start_method_definition (bool ARG_UNUSED (is_class_method), |
208 | tree ARG_UNUSED (signature), | |
4232a958 | 209 | tree ARG_UNUSED (attributes), |
210 | tree ARG_UNUSED (expr)) | |
e4897e7d | 211 | { |
d4a8fb25 | 212 | return true; |
e4897e7d | 213 | } |
214 | ||
215 | void | |
216 | objc_finish_method_definition (tree ARG_UNUSED (fndecl)) | |
217 | { | |
218 | } | |
219 | ||
40c8d1dd | 220 | bool |
221 | objc_method_decl (enum tree_code ARG_UNUSED(opcode)) | |
222 | { | |
223 | return false; | |
224 | } | |
225 | ||
e4897e7d | 226 | tree |
227 | objc_build_keyword_decl (tree ARG_UNUSED (selector), | |
cab08a39 | 228 | tree ARG_UNUSED (type), |
03fc2271 | 229 | tree ARG_UNUSED (identifier), |
230 | tree ARG_UNUSED (attributes)) | |
e4897e7d | 231 | { |
232 | return 0; | |
233 | } | |
234 | ||
235 | tree | |
45b2b110 | 236 | objc_build_method_signature (bool ARG_UNUSED (is_class_method), |
237 | tree ARG_UNUSED (rettype), | |
e4897e7d | 238 | tree ARG_UNUSED (selectors), |
450302fe | 239 | tree ARG_UNUSED (optparms), |
240 | bool ARG_UNUSED (ellipsis)) | |
e4897e7d | 241 | { |
242 | return 0; | |
243 | } | |
244 | ||
245 | tree | |
246 | objc_build_encode_expr (tree ARG_UNUSED (expr)) | |
247 | { | |
248 | return 0; | |
249 | } | |
250 | ||
251 | tree | |
252 | objc_build_protocol_expr (tree ARG_UNUSED (expr)) | |
253 | { | |
254 | return 0; | |
255 | } | |
256 | ||
257 | tree | |
e60a6f7b | 258 | objc_build_selector_expr (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr)) |
e4897e7d | 259 | { |
260 | return 0; | |
261 | } | |
262 | ||
263 | tree | |
4185cf58 | 264 | objc_build_message_expr (tree ARG_UNUSED (receiver), tree ARG_UNUSED (args)) |
e4897e7d | 265 | { |
266 | return 0; | |
267 | } | |
268 | ||
269 | tree | |
270 | objc_build_string_object (tree ARG_UNUSED (str)) | |
271 | { | |
272 | return 0; | |
273 | } | |
274 | ||
275 | tree | |
276 | objc_get_class_reference (tree ARG_UNUSED (name)) | |
277 | { | |
278 | return 0; | |
279 | } | |
280 | ||
394dd737 | 281 | bool |
282 | objc_detect_field_duplicates (bool ARG_UNUSED (check_superclasses_only)) | |
e93ea189 | 283 | { |
394dd737 | 284 | return false; |
e93ea189 | 285 | } |
286 | ||
e4897e7d | 287 | tree |
288 | objc_get_protocol_qualified_type (tree ARG_UNUSED (name), | |
289 | tree ARG_UNUSED (protos)) | |
290 | { | |
291 | return 0; | |
292 | } | |
293 | ||
294 | int | |
295 | objc_static_init_needed_p (void) | |
296 | { | |
297 | return 0; | |
298 | } | |
299 | ||
300 | tree | |
301 | objc_generate_static_init_call (tree ARG_UNUSED (ctors)) | |
302 | { | |
303 | return 0; | |
304 | } | |
305 | ||
43bf5d72 | 306 | int |
9a03a746 | 307 | objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier)) |
43bf5d72 | 308 | { |
309 | return 1; | |
310 | } | |
1576dec7 | 311 | |
312 | tree | |
ddb5d39d | 313 | objc_get_class_ivars (tree ARG_UNUSED (name)) |
1576dec7 | 314 | { |
315 | return 0; | |
316 | } | |
317 | ||
86c110ac | 318 | void |
7590f0e5 | 319 | objc_add_property_declaration (location_t ARG_UNUSED (location), |
320 | tree ARG_UNUSED (decl), | |
321 | bool ARG_UNUSED (parsed_property_readonly), | |
322 | bool ARG_UNUSED (parsed_property_readwrite), | |
323 | bool ARG_UNUSED (parsed_property_assign), | |
324 | bool ARG_UNUSED (parsed_property_retain), | |
325 | bool ARG_UNUSED (parsed_property_copy), | |
326 | bool ARG_UNUSED (parsed_property_nonatomic), | |
327 | tree ARG_UNUSED (parsed_property_getter_ident), | |
9d9f5bb3 | 328 | tree ARG_UNUSED (parsed_property_setter_ident)) |
86c110ac | 329 | { |
330 | } | |
331 | ||
9d9f5bb3 | 332 | bool |
333 | objc_is_property_ref (tree ARG_UNUSED (node)) | |
334 | { | |
335 | return 0; | |
336 | } | |
337 | ||
86c110ac | 338 | tree |
9d9f5bb3 | 339 | objc_maybe_build_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component)) |
86c110ac | 340 | { |
341 | return 0; | |
342 | } | |
343 | ||
b0d0931f | 344 | tree |
345 | objc_build_class_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component)) | |
346 | { | |
347 | return 0; | |
348 | } | |
349 | ||
86c110ac | 350 | tree |
9d9f5bb3 | 351 | objc_maybe_build_modify_expr (tree ARG_UNUSED (lhs), tree ARG_UNUSED (rhs)) |
86c110ac | 352 | { |
353 | return 0; | |
354 | } | |
355 | ||
e4a7640a | 356 | tree |
357 | objc_build_incr_expr_for_property_ref (location_t ARG_UNUSED (location), | |
358 | enum tree_code ARG_UNUSED (code), | |
359 | tree ARG_UNUSED (argument), | |
360 | tree ARG_UNUSED (increment)) | |
361 | { | |
362 | return 0; | |
363 | } | |
364 | ||
e1f293c0 | 365 | void |
366 | objc_add_synthesize_declaration (location_t ARG_UNUSED (start_locus), | |
367 | tree ARG_UNUSED (property_and_ivar_list)) | |
368 | { | |
369 | } | |
370 | ||
371 | void | |
372 | objc_add_dynamic_declaration (location_t ARG_UNUSED (start_locus), | |
373 | tree ARG_UNUSED (property_list)) | |
374 | { | |
375 | } | |
376 | ||
e23bf1fb | 377 | const char * |
378 | objc_maybe_printable_name (tree ARG_UNUSED (decl), | |
379 | int ARG_UNUSED (v)) | |
380 | { | |
381 | return NULL; | |
382 | } | |
383 | ||
1576dec7 | 384 | tree |
e60a6f7b | 385 | objc_build_throw_stmt (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr)) |
1576dec7 | 386 | { |
387 | return 0; | |
388 | } | |
389 | ||
ddb5d39d | 390 | tree |
1576dec7 | 391 | objc_build_synchronized (location_t ARG_UNUSED (start_locus), |
392 | tree ARG_UNUSED (mutex), tree ARG_UNUSED (body)) | |
393 | { | |
ddb5d39d | 394 | return 0; |
1576dec7 | 395 | } |
396 | ||
397 | void | |
398 | objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body)) | |
399 | { | |
400 | } | |
48e1416a | 401 | |
1576dec7 | 402 | void |
403 | objc_begin_catch_clause (tree ARG_UNUSED (decl)) | |
404 | { | |
405 | } | |
406 | ||
407 | void | |
408 | objc_finish_catch_clause (void) | |
409 | { | |
410 | } | |
411 | ||
412 | void | |
413 | objc_build_finally_clause (location_t ARG_UNUSED (finally_locus), | |
414 | tree ARG_UNUSED (body)) | |
415 | { | |
416 | } | |
417 | ||
ddb5d39d | 418 | tree |
1576dec7 | 419 | objc_finish_try_stmt (void) |
420 | { | |
ddb5d39d | 421 | return 0; |
1576dec7 | 422 | } |
ddb5d39d | 423 | |
424 | tree | |
425 | objc_generate_write_barrier (tree ARG_UNUSED (lhs), | |
426 | enum tree_code ARG_UNUSED (modifycode), | |
427 | tree ARG_UNUSED (rhs)) | |
428 | { | |
429 | return 0; | |
48e1416a | 430 | } |
0a65c3bb | 431 | |
432 | void | |
433 | objc_finish_foreach_loop (location_t ARG_UNUSED (location), tree ARG_UNUSED (object_expression), | |
434 | tree ARG_UNUSED (collection_expression), tree ARG_UNUSED (for_body), | |
435 | tree ARG_UNUSED (break_label), tree ARG_UNUSED (continue_label)) | |
436 | { | |
437 | return; | |
438 | } | |
64cd9619 | 439 | |
440 | void | |
441 | objc_write_global_declarations (void) | |
442 | { | |
443 | } | |
1f6616ee | 444 | |
445 | bool | |
446 | objc_string_ref_type_p (tree ARG_UNUSED (strp)) | |
447 | { | |
448 | return false; | |
449 | } | |
450 | ||
451 | void | |
452 | objc_check_format_arg (tree ARG_UNUSED (format_arg), | |
453 | tree ARG_UNUSED (args_list)) | |
454 | { | |
455 | } | |
d7489d8d | 456 | |
457 | void | |
458 | objc_finish_function (void) | |
459 | { | |
460 | } | |
33b3681f | 461 | |
462 | void | |
463 | objc_maybe_warn_exceptions (location_t ARG_UNUSED (loc)) | |
464 | { | |
465 | } |