aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline-transform.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2011-04-29 00:49:46 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2011-04-29 00:49:46 +0200
commit85ad2ef57fb2c016b0944e2d685e0c57a8018671 (patch)
tree26c22ad7602a23bc16258ff654830655fd733322 /gcc/ipa-inline-transform.c
parent74c810bdd01ab0b60037927982a4cee6c2c86416 (diff)
downloadgcc-85ad2ef57fb2c016b0944e2d685e0c57a8018671.zip
gcc-85ad2ef57fb2c016b0944e2d685e0c57a8018671.tar.gz
gcc-85ad2ef57fb2c016b0944e2d685e0c57a8018671.tar.bz2
cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph node instead of a decl.
2011-04-29 Martin Jambor <mjambor@suse.cz> * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph node instead of a decl. Update all callers. * cgraph.h: Update declaration. From-SVN: r173138
Diffstat (limited to 'gcc/ipa-inline-transform.c')
-rw-r--r--gcc/ipa-inline-transform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c
index 7465325..117958c 100644
--- a/gcc/ipa-inline-transform.c
+++ b/gcc/ipa-inline-transform.c
@@ -297,7 +297,7 @@ inline_transform (struct cgraph_node *node)
/* We might need the body of this function so that we can expand
it inline somewhere else. */
- if (cgraph_preserve_function_body_p (node->decl))
+ if (cgraph_preserve_function_body_p (node))
save_inline_function_body (node);
for (e = node->callees; e; e = e->next_callee)