From 3982d356b2f3ffe2f76e93c27c09740f126feadd Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 26 Apr 2011 17:12:57 -0400 Subject: [PATCH] objc-act.c (objc_fold_objc_type_ref): Remove. * objc-act.c (objc_fold_objc_type_ref): Remove. * objc-act.h: Remove prototype. From-SVN: r172986 --- gcc/objc/ChangeLog | 5 +++++ gcc/objc/objc-act.c | 27 --------------------------- gcc/objc/objc-act.h | 1 - 3 files changed, 5 insertions(+), 28 deletions(-) diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 0732a8b7523..79e48eb761c 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,8 @@ +2011-04-26 Jason Merrill + + * objc-act.c (objc_fold_objc_type_ref): Remove. + * objc-act.h: Remove prototype. + 2011-04-21 Nathan Froyd * objc-act.c (synth_module_prologue): Call build_function_type_list diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 0b6b7931b27..250b3175248 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -8602,33 +8602,6 @@ objc_type_valid_for_messaging (tree type, bool accept_classes) return false; } -/* Fold an OBJ_TYPE_REF expression for ObjC method dispatches, where - this occurs. ObjC method dispatches are _not_ like C++ virtual - member function dispatches, and we account for the difference here. */ -tree -#ifdef OBJCPLUS -objc_fold_obj_type_ref (tree ref, tree known_type) -#else -objc_fold_obj_type_ref (tree ref ATTRIBUTE_UNUSED, - tree known_type ATTRIBUTE_UNUSED) -#endif -{ -#ifdef OBJCPLUS - tree v = BINFO_VIRTUALS (TYPE_BINFO (known_type)); - - /* If the receiver does not have virtual member functions, there - is nothing we can (or need to) do here. */ - if (!v) - return NULL_TREE; - - /* Let C++ handle C++ virtual functions. */ - return cp_fold_obj_type_ref (ref, known_type); -#else - /* For plain ObjC, we currently do not need to do anything. */ - return NULL_TREE; -#endif -} - void objc_start_function (tree name, tree type, tree attrs, #ifdef OBJCPLUS diff --git a/gcc/objc/objc-act.h b/gcc/objc/objc-act.h index 909181a1fd2..d604299c464 100644 --- a/gcc/objc/objc-act.h +++ b/gcc/objc/objc-act.h @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see bool objc_init (void); const char *objc_printable_name (tree, int); -tree objc_fold_obj_type_ref (tree, tree); int objc_gimplify_expr (tree *, gimple_seq *, gimple_seq *); void objc_common_init_ts (void); -- 2.30.2