diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2014-10-07 09:18:37 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2014-10-07 09:18:37 +0000 |
commit | 8ccda8bce69d8e511e38689fb75b7f5a404e00c3 (patch) | |
tree | 72fe163acf91a73fc92b843156c63ac32b67292f /gcc/cgraph.h | |
parent | 2f77200b3f168ebf0b07acd63d68096d8840fc1d (diff) | |
download | gcc-8ccda8bce69d8e511e38689fb75b7f5a404e00c3.zip gcc-8ccda8bce69d8e511e38689fb75b7f5a404e00c3.tar.gz gcc-8ccda8bce69d8e511e38689fb75b7f5a404e00c3.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |