aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/objc-act.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-04-26 17:12:57 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-04-26 17:12:57 -0400
commit3982d356b2f3ffe2f76e93c27c09740f126feadd (patch)
tree5c06b41dde787198412e185adb7586c155728fbe /gcc/objc/objc-act.c
parent574cfaa47dbcc2e8d9ea68b83d8dc3122832ff9b (diff)
downloadgcc-3982d356b2f3ffe2f76e93c27c09740f126feadd.zip
gcc-3982d356b2f3ffe2f76e93c27c09740f126feadd.tar.gz
gcc-3982d356b2f3ffe2f76e93c27c09740f126feadd.tar.bz2
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
Diffstat (limited to 'gcc/objc/objc-act.c')
-rw-r--r--gcc/objc/objc-act.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 0b6b793..250b317 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