diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-10-20 22:41:53 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-10-20 22:41:53 +0000 |
commit | 249a82c4c632bbba058b583d41b3829ae7e8f119 (patch) | |
tree | d92f3d904701bebb9ece6405dc79f58c575c78f0 /gcc/c-family/stub-objc.c | |
parent | f1e344ed754edda1085dfeecca07680119f3a67c (diff) | |
download | gcc-249a82c4c632bbba058b583d41b3829ae7e8f119.zip gcc-249a82c4c632bbba058b583d41b3829ae7e8f119.tar.gz gcc-249a82c4c632bbba058b583d41b3829ae7e8f119.tar.bz2 |
In gcc/: 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
* parser.c (c_parser_objc_method_type): Mark inline. Return a
bool instead of a tree.
(c_parser_objc_method_decl): Added bool argument. Updated call to
objc_build_method_signature.
(c_parser_objc_method_definition): Do not call
objc_set_method_type. Updated calls to c_parser_objc_method_type,
c_parser_objc_method_decl and objc_start_method_definition.
(c_parser_objc_methodproto): Do not call objc_set_method_type.
Updated calls to c_parser_objc_method_type,
c_parser_objc_method_decl and objc_add_method_declaration.
In gcc/c-family/:
2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
* c-common.h (objc_set_method_type): Removed.
(objc_add_method_declaration): Added boolean argument.
(objc_start_method_definition): Same change.
(objc_build_method_signature): Same change.
* stub-objc.c (objc_set_method_type): Removed.
(objc_add_method_declaration): Added boolean argument.
(objc_start_method_definition): Same change.
(objc_build_method_signature): Same change.
In gcc/cp/:
2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
* parser.c (cp_parser_objc_method_type): Mark inline. Return a
bool instead of calling objc_set_method_type.
(cp_parser_objc_method_signature): Updated calls to
cp_parser_objc_method_type and to objc_build_method_signature.
(cp_parser_objc_method_prototype_list): Updated calls to
objc_add_method_declaration. Use token->type to determine if it
is a class method or not.
(cp_parser_objc_method_definition_list): Same change.
In gcc/objc/:
2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-act.h (objc_inherit_code): Removed.
* objc-act.c (objc_inherit_code): Removed.
(objc_set_method_type): Removed.
(objc_build_method_signature): Added is_class_method argument.
Use it instead of the global objc_inherit_code variable.
(objc_add_method_declaration): Same change.
(objc_start_method_definition): Same change.
(objc_generate_cxx_ctor_or_dtor): Updated call to
objc_start_method_definition. Do not call objc_set_method_type.
(adjust_type_for_id_default): Mark as inline.
(objc_synthesize_getter): Updated call to
objc_start_method_definition. Do not set objc_inherit_code.
(objc_synthesize_setter): Updated call to
objc_start_method_definition. Do not set objc_inherit_code.
From-SVN: r165741
Diffstat (limited to 'gcc/c-family/stub-objc.c')
-rw-r--r-- | gcc/c-family/stub-objc.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gcc/c-family/stub-objc.c b/gcc/c-family/stub-objc.c index 3356d0b..7ef4f1e 100644 --- a/gcc/c-family/stub-objc.c +++ b/gcc/c-family/stub-objc.c @@ -179,11 +179,6 @@ objc_set_visibility (objc_ivar_visibility_kind ARG_UNUSED (vis)) } void -objc_set_method_type (enum tree_code ARG_UNUSED (code)) -{ -} - -void objc_start_class_implementation (tree ARG_UNUSED (name), tree ARG_UNUSED (super)) { @@ -211,13 +206,15 @@ objc_finish_implementation (void) } void -objc_add_method_declaration (tree ARG_UNUSED (signature), +objc_add_method_declaration (bool ARG_UNUSED (is_class_method), + tree ARG_UNUSED (signature), tree ARG_UNUSED (attributes)) { } bool -objc_start_method_definition (tree ARG_UNUSED (signature), +objc_start_method_definition (bool ARG_UNUSED (is_class_method), + tree ARG_UNUSED (signature), tree ARG_UNUSED (attributes)) { return true; @@ -244,7 +241,8 @@ objc_build_keyword_decl (tree ARG_UNUSED (selector), } tree -objc_build_method_signature (tree ARG_UNUSED (rettype), +objc_build_method_signature (bool ARG_UNUSED (is_class_method), + tree ARG_UNUSED (rettype), tree ARG_UNUSED (selectors), tree ARG_UNUSED (optparms), bool ARG_UNUSED (ellipsis)) |