diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2015-06-25 23:45:50 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2015-06-25 23:45:50 +0000 |
commit | 318ed250bb846b60fe44357e8dfd60709180389a (patch) | |
tree | f2fdd651a9ab8f6dbafbdb41dad54efdd25d4c94 /gcc/gimple.c | |
parent | 411be49d64b9be1b24a3925c5b245af0d876cffa (diff) | |
download | gcc-318ed250bb846b60fe44357e8dfd60709180389a.zip gcc-318ed250bb846b60fe44357e8dfd60709180389a.tar.gz gcc-318ed250bb846b60fe44357e8dfd60709180389a.tar.bz2 |
gimple.h (gimple_call_set_fn): Move inline function.
2015-06-25 Andrew MacLeod <amacleod@redhat.com>
* gimple.h (gimple_call_set_fn): Move inline function.
* gimple.c (gimple_call_set_fn): Relocate here.
From-SVN: r224989
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index b32c6b5..bd788be 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -199,6 +199,16 @@ gimple_build_return (tree retval) return s; } +/* Set FNDECL to be the function called by call statement GS. */ + +void +gimple_call_set_fndecl (gimple gs, tree decl) +{ + GIMPLE_CHECK (gs, GIMPLE_CALL); + gcc_gimple_checking_assert (!gimple_call_internal_p (gs)); + gimple_set_op (gs, 1, build_fold_addr_expr_loc (gimple_location (gs), decl)); +} + /* Reset alias information on call S. */ void |