summaryrefslogtreecommitdiff
path: root/gcc/ipa-devirt.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-23 15:55:22 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-23 15:55:22 +0000
commit6d5f1e49af9d7d5b6ba2ba64cdafaee947d8b7d1 (patch)
tree2e1a9c0b0d0fe3d55d04432be9805968347279f3 /gcc/ipa-devirt.c
parent1e4f411894b0ede541a6cf0e9e2e18cca3aaa45e (diff)
downloadgcc-6d5f1e49af9d7d5b6ba2ba64cdafaee947d8b7d1.tar.gz
* ipa-utils.h (method_class_type): Declare.
* ipa-devirt.c (method_class_type): Export. * cgraphunit.c (analyze_functions): Do basic devirtualization; do not walk base classes of anonymous types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201944 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-devirt.c')
-rw-r--r--gcc/ipa-devirt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index 4daf6b451d9..0b678bd750d 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -342,7 +342,7 @@ dump_type_inheritance_graph (FILE *f)
/* Given method type T, return type of class it belongs to.
Lookup this pointer and get its type. */
-static tree
+tree
method_class_type (tree t)
{
tree first_parm_type = TREE_VALUE (TYPE_ARG_TYPES (t));