summaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2019-09-27 18:12:56 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2019-09-27 18:12:56 +0000
commit975d043ff6b6f8a9e9ff0be799701fc1d842bb83 (patch)
treecf6122077a6123434033acb264517f631206f6f5 /gcc/cgraph.c
parent37ed4c3269f940a3a064e320331aed38890fb8c0 (diff)
Make cgraph_node::get_fun const
gcc/ChangeLog: * cgraph.c (cgraph_node::get_fun): Make const. * cgraph.h (cgraph_node::get_fun): Likewise. From-SVN: r276190
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 331b363c175..8615e2eca36 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -3602,9 +3602,9 @@ cgraph_node::get_body (void)
/* Return the DECL_STRUCT_FUNCTION of the function. */
struct function *
-cgraph_node::get_fun (void)
+cgraph_node::get_fun () const
{
- cgraph_node *node = this;
+ const cgraph_node *node = this;
struct function *fun = DECL_STRUCT_FUNCTION (node->decl);
while (!fun && node->clone_of)