From 8ccda8bce69d8e511e38689fb75b7f5a404e00c3 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 7 Oct 2014 09:18:37 +0000 Subject: cgraph.h (cgraph_node::get_fun): Declare. * cgraph.h (cgraph_node::get_fun): Declare. * cgraph.c (cgraph_node::get_fun): New method. * ipa-inline.c (can_inline_edge_p): Use it. From-SVN: r215968 --- gcc/cgraph.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/cgraph.h') diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 20b5c4e..1df7534 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -919,6 +919,9 @@ public: are free'd in final.c via free_after_compilation(). */ void release_body (bool keep_arguments = false); + /* Return the DECL_STRUCT_FUNCTION of the function. */ + struct function *get_fun (void); + /* cgraph_node is no longer nested function; update cgraph accordingly. */ void unnest (void); -- cgit v1.1