aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-01 17:46:32 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-01 17:46:32 +0000
commitad687a96e99e60632d51e9754e3cfae67b00ceb2 (patch)
treea4973a44ce2955c57be0c74167826201cb5f1f87 /gcc/cgraphunit.c
parent52bcb12dc1d5b5f20af9bb055a01bb612a4a50ab (diff)
PR middle-end/51273
* cgraph.h (cgraph_call_node_duplication_hooks): Declare. * cgraph.c (cgraph_call_node_duplication_hooks): Make global. * cgraphunit.c (cgraph_copy_node_for_versioning): Call it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181887 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 40bcf8fc9ef..251b5554725 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2318,6 +2318,8 @@ cgraph_copy_node_for_versioning (struct cgraph_node *old_version,
cgraph_redirect_edge_callee (e, new_version);
}
+ cgraph_call_node_duplication_hooks (old_version, new_version);
+
return new_version;
}