diff options
author | Jan Hubicka <jh@suse.cz> | 2008-06-18 15:39:43 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-06-18 13:39:43 +0000 |
commit | ff2c88a5611bfb610de62937e762457124747d3c (patch) | |
tree | 9a9646a27710c1197a1ba3b155dad3007d0d984e /gcc/cp/method.c | |
parent | b7352f3f9aeba3d9baf252c7cabecebae673cb0d (diff) | |
download | gcc-ff2c88a5611bfb610de62937e762457124747d3c.zip gcc-ff2c88a5611bfb610de62937e762457124747d3c.tar.gz gcc-ff2c88a5611bfb610de62937e762457124747d3c.tar.bz2 |
cgraph.c (cgraph_add_new_function): When in expansion state, do lowering.
* cgraph.c (cgraph_add_new_function): When in expansion state, do lowering.
* method.c: Include cgraph.h.
(use_thunk): Use cgraph_add_new_function instead of calling backend directly.
From-SVN: r136892
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 45358b2..bd63d0c 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -38,6 +38,7 @@ along with GCC; see the file COPYING3. If not see #include "target.h" #include "tree-pass.h" #include "diagnostic.h" +#include "cgraph.h" /* Various flags to control the mangling process. */ @@ -523,8 +524,7 @@ use_thunk (tree thunk_fndecl, bool emit_p) pop_deferring_access_checks (); thunk_fndecl = finish_function (0); - tree_lowering_passes (thunk_fndecl); - tree_rest_of_compilation (thunk_fndecl); + cgraph_add_new_function (thunk_fndecl, false); } pop_from_top_level (); |