]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/d/d-codegen.cc
d: Use create_tmp_var_raw and get_callee_fndecl
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 28 Jun 2022 16:49:27 +0000 (18:49 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 28 Jun 2022 17:05:42 +0000 (19:05 +0200)
commitad4c44d20ece1fbfb9aced1fbcdab8928d702c73
treed2fac615b845ecc11a7901496a66f6d0327fc970
parent6201277441db4023b833e6d643de8077fe38ed6e
d: Use create_tmp_var_raw and get_callee_fndecl

A couple of small patterns that repeat are generating a temporary, and
getting a function out of a CALL_EXPR.  There are convenience functions
for these in the common parts of gcc, use them instead.

gcc/d/ChangeLog:

* d-codegen.cc: Include gimple-expr.h.
(force_target_expr): Use create_tmp_var_raw.
* decl.cc: Inlucde gimple-expr.h.
(build_local_temp): Use create_tmp_var_raw.
* intrinsics.cc (expand_intrinsic_rotate): Use get_callee_fndecl.
(maybe_expand_intrinsic): Likewise.
gcc/d/d-codegen.cc
gcc/d/decl.cc
gcc/d/intrinsics.cc