aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-05-07 19:35:23 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-05-07 19:35:23 +0000
commit9bbf45f692c7f45b0bdbeffb6eb837790433e676 (patch)
tree31b5aecd265d0c3fa763e73cc3eff8ef0778f7e7 /gcc/gimple.c
parent04e5eb5f10dd261bedcaf5618a4147ffe3784a34 (diff)
downloadgcc-9bbf45f692c7f45b0bdbeffb6eb837790433e676.zip
gcc-9bbf45f692c7f45b0bdbeffb6eb837790433e676.tar.gz
gcc-9bbf45f692c7f45b0bdbeffb6eb837790433e676.tar.bz2
Const-correctness of gimple_call_builtin_p
gcc/ 2014-05-07 David Malcolm <dmalcolm@redhat.com> * gimple.h (gimple_builtin_call_types_compatible_p): Accept a const_gimple, rather than a gimple. (gimple_call_builtin_p): Likewise, for the three variants. * gimple.c (gimple_builtin_call_types_compatible_p): Likewise. (gimple_call_builtin_p): Likewise, for the three variants. From-SVN: r210185
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r--gcc/gimple.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c
index d6bc15b..091467e 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -2376,7 +2376,7 @@ validate_type (tree type1, tree type2)
a decl of a builtin function. */
bool
-gimple_builtin_call_types_compatible_p (gimple stmt, tree fndecl)
+gimple_builtin_call_types_compatible_p (const_gimple stmt, tree fndecl)
{
gcc_checking_assert (DECL_BUILT_IN_CLASS (fndecl) != NOT_BUILT_IN);
@@ -2405,7 +2405,7 @@ gimple_builtin_call_types_compatible_p (gimple stmt, tree fndecl)
/* Return true when STMT is builtins call. */
bool
-gimple_call_builtin_p (gimple stmt)
+gimple_call_builtin_p (const_gimple stmt)
{
tree fndecl;
if (is_gimple_call (stmt)
@@ -2418,7 +2418,7 @@ gimple_call_builtin_p (gimple stmt)
/* Return true when STMT is builtins call to CLASS. */
bool
-gimple_call_builtin_p (gimple stmt, enum built_in_class klass)
+gimple_call_builtin_p (const_gimple stmt, enum built_in_class klass)
{
tree fndecl;
if (is_gimple_call (stmt)
@@ -2431,7 +2431,7 @@ gimple_call_builtin_p (gimple stmt, enum built_in_class klass)
/* Return true when STMT is builtins call to CODE of CLASS. */
bool
-gimple_call_builtin_p (gimple stmt, enum built_in_function code)
+gimple_call_builtin_p (const_gimple stmt, enum built_in_function code)
{
tree fndecl;
if (is_gimple_call (stmt)